Top "Laravel-5" questions

Laravel 5 is the previous major version of the open-source PHP web development MVC framework created by Taylor Otwell.

SQLSTATE[HY000] [2002] Connection refused within Laravel homestead

Using Mac OS X and Homestead 2.2.1 with Laravel 5.2. In terminal (within homestead in my project folder) I can do php …

php laravel-5 migration homestead laravel-artisan
Laravel 5 route not defined, while it is?

I'm a little confused on how this is supposed to work. But I'm getting an Route [/preferences/1] not defined error. …

php laravel routes laravel-5
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

I download from https://github.com/luciddreamz/laravel Laravel for openshift then upload over my repository over github. This code …

mysql laravel laravel-5 openshift
Class 'App\Http\Controllers\DB' not found and I also cannot use a new Model

I have very basic problem. In L4 thes below methods worked out of the box, so now I am lost. …

php laravel namespaces models laravel-5
Laravel 5 - artisan seed [ReflectionException] Class SongsTableSeeder does not exist

When I run php artisan db:seed I am getting the following error: [ReflectionException] Class SongsTableSeeder does not exist What …

laravel composer-php laravel-5 laravel-artisan
How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?

I would like to make a timestamp column with a default value of CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP using …

php mysql laravel laravel-4 laravel-5
Laravel - Route::resource vs Route::controller

I read the docs on the Laravel website, Stack Overflow, and Google but still don't understand the difference between Route::…

laravel laravel-5 laravel-4
laravel 5.3 new Auth::routes()

Recently I start to use laravel 5.3 to write a blog, but I have a question after run php artisan make:…

php laravel laravel-5 laravel-5.3
Custom pagination view in Laravel 5

Laravel 4.2 has the option to specify a custom view in app/config/view.php such as: /* |-------------------------------------------------------------------------- | Pagination View |-------------------------------------------------------------------------- | | …

php pagination laravel-5
Laravel Check If Related Model Exists

I have an Eloquent model which has a related model: public function option() { return $this->hasOne('RepairOption', 'repair_item_…

php laravel laravel-4 eloquent laravel-5