40
Q:

laravel create migration

php artisan make:migration create_users_table
2
//to create migration file in PHP use the artisan command "make"
php artisan make:migration create_users_table
// migration file must follow the naming convention "operation_tableName_table"
//Migration file to add column naming convention would be "add_tablename_table"
1
php artisan make:migration create_users_table --create=users

php artisan make:migration add_votes_to_users_table --table=users
3
php artisan migrate
0
php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users
1
# If you would like to generate a database migration when you 
# generate the model, you may use the --migration or -m option:

php artisan make:model Flight --migration
php artisan make:model Flight -m
2
php artisan make:migration CreateUsersTable
1
php artisan make:Model Product -m -c  --resource
0

New to Communities?

Join the community