laravel migrace cizí klíč 5.6
Schema::table('posts', function (Blueprint $table) {
$table->unsignedInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
});
Laravel migration integer
$table->bigInteger('votes');
php artisan viz poslední migrace
php artisan migrate:status
hwo vytvořit databázovou tabulku v laravel
php artisan make:migartion create_users_table