laravel run single migration
php artisan migrate --path=/database/migrations/my_migration.php
laravel run single migration
php artisan migrate --path=/database/migrations/my_migration.php
migrate specific migration laravel
php artisan migrate --path=/database/migrations/selected
how to run a specific migration in laravel
* To run a specific migration
php artisan migrate:refresh --path=/database/migrations/2019_03_23_165757_create_combined_1553343771_users_table.php
- Note: it will drop the table and create a new one.
laravel create model and migration
# 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
how to migrate spisipic migration
php artisan migrate:refresh --path=/database/migrations/2014_10_12_000000_create_users_table.php
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us