Answers for "how to add data on thunder in laravel with foreign key"

PHP
1

laravel 8 foreign key

Schema::table('posts', function (Blueprint $table) {
    $table->foreignId('user_id')->constrained();
});
Posted by: Guest on October-25-2021

Code answers related to "how to add data on thunder in laravel with foreign key"

Browse Popular Code Answers by Language