laravel създава миграция
// use the make:migration Artisan command to generate a database migration
php artisan make:migration create_flights_table
// use --create to indicate whether the migration will be creating a new table
php artisan make:migration create_flights_table --create=flights
// use --table to indicate the table name
php artisan make:migration add_destination_to_flights_table --table=flights
php занаятчия стартиране на миграция
php artisan migrate
презареждане миграция laravel
Try:
composer dump-autoload
php artisan config:cache
If not working also try:
php artisan migrate:refresh.
преход към съществуваща таблица в laravel commad
php artisan make:migration add_paid_to_users_table --table=users
създаване на миграция laravel
php artisan make:Model Product -m -c --resource
как да направим миграция в laravel
php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users