външен ключ миграция laravel 5.6
Schema::table('posts', function (Blueprint $table) {
$table->unsignedInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
});
добавяне на колона в миграцията на laravel
php artisan make:migration add_paid_to_users_table --table=users
как да променя съществуващата миграция laravel
php artisan make:migration update_user_guide_in_product_translations_table
създаване на миграция laravel
php artisan make:migration create_users_table
намаление на цените на последната миграция на laravel
php artisan migrate:rollback --step=1
laravel създава миграция
php artisan make:migration add_votes_to_users_table --table=users
php artisan make:migration create_users_table --create=users