Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel migration remove relationship from table

Schema::table('admins', function (Blueprint $table) {
    $table->dropForeign('admins_post_id_foreign');
    $table->dropColumn('post_id');
});
Source by www.itsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #laravel #migration #remove #relationship #table
ADD COMMENT
Topic
Name
2+2 =