Fix for Laravel 5