php artisan migrate:make create_mytable fails: “migrate:make” is not defined

The syntax has changed to php artisan make:migration. Here are the available make commands. make:auth Create auth classes for the application make:console Create a new Artisan command make:controller Create a new resource controller class make:filter Create a new route filter class make:migration Create a new migration file make:provider Create a new service provider class make:request … Read more

Fatal error: Class ‘Illuminate\Foundation\Application’ not found

In my situation, I didn’t have the full vendor dependencies in place (composer file was messed up during original install) – so running any artisan commands caused a failure. I was able to use the –no-scripts flag to prevent artisan from executing before it was included. Once my dependencies were in place, everything worked as … Read more

What are the Differences Between “php artisan dump-autoload” and “composer dump-autoload”?

Laravel’s Autoload is a bit different: It will in fact use Composer for some stuff It will call Composer with the optimize flag It will ‘recompile‘ loads of files creating the huge bootstrap/compiled.php And also will find all of your Workbench packages and composer dump-autoload them, one by one.

Laravel – create model, controller and migration in single artisan command

You can do it if you start from the model php artisan make:model Todo -mcr if you run php artisan make:model –help you can see all the available options -m, –migration Create a new migration file for the model. -c, –controller Create a new controller for the model. -r, –resource Indicates if the generated controller … Read more

Laravel 5 – artisan seed [ReflectionException] Class SongsTableSeeder does not exist

You need to put SongsTableSeeder into file SongsTableSeeder.php in the same directory where you have your DatabaseSeeder.php file. And you need to run in your console: composer dump-autoload to generate new class map and then run: php artisan db:seed I’ve just tested it. It is working without a problem in Laravel 5

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)