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');
   });
 }
 
PREVIOUS NEXT
Tagged: #table #drop #foreign #php #laravel
ADD COMMENT
Topic
Name
9+2 =