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 applicationmake:console Create a new Artisan commandmake:controller Create a new resource controller classmake:filter Create a new route filter classmake:migration Create a new migration filemake:provider Create a new service provider classmake:request Create a new form request class
You can see a full list of commands by running php artisan list
You might also be ineterested in the Laravel Generators package.
To use it with Laravel 5, you'll need to require "way/generators": "~3.0"
It gives you the following additional commands:
generate:controller Generate a controllergenerate:migration Generate a new migrationgenerate:model Generate a modelgenerate:pivot Generate a pivot tablegenerate:publish-templates Copy generator templates for user modificationgenerate:resource Generate a new resourcegenerate:scaffold Scaffold a new resource (with boilerplate)generate:seed Generate a database table seedergenerate:view Generate a view
yes, in Laravel 5, this is moved to
php artisan make:migration (followed by the usual parameters you would have used before)
The artisan command for creating migrations in Laravel 5 is:php artisan make:migration create_my_table --create="my_table"
For a list of all available arguments you could prefix the artisan command with "help":php artisan help make:migration