Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

delete all rows in table laravel foreign key

DB::statement("SET foreign_key_checks=0");
Model::truncate();
DB::statement("SET foreign_key_checks=1");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #rows #table #laravel #foreign #key
ADD COMMENT
Topic
Name
7+1 =