Laravel Database Migration

Please follow these steps to create successful migration.

1) Please run this command to create migration file
php artisan migrate:make create_users_table

2) You can check the migration file in folder app/database/migrations (File name: eg 2014_12_01_064050_create_users_table.php)

3) You can add the table fields in this file with proper syntax.

4) Run this command

php artisan migrate

Note: If table is not created then please give the 777 permission to migration file.

No comments:

Post a Comment