Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

differences between `--table` and `--create` options in laravel5 make:migration

I don't know what differences between php artisan make:migration --table and php artisan make:migration --create options?!I was completely confused :(
Are there any differences?
When should I use --table option or --create option?
laravel says that :

The --table and --create options may also be used to indicate the name of the table, and whether the migration will be creating a new table

like image 352
navid Avatar asked May 02 '15 14:05

navid


1 Answers

I think that I find the answer.To create a new database table, the Schema::create method is used (--create option) and to update an existing table, we can use the Schema::table method (--table option).

like image 200
navid Avatar answered Oct 12 '22 16:10

navid