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
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With