Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

table drop foreign php laravel

 public function down()
 {
   Schema::table('tarefas', function (Blueprint $table) {
     $table->dropForeign('tarefas_user_id_foreign');

     $table->dropColumn('user_id');
   });
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #table #drop #foreign #php #laravel
ADD COMMENT
Topic
Name
6+8 =