Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

delete all rows in table laravel

// Uncomment the below to wipe the table clean before populating

DB::table('table_name')->truncate();

//or

DB::table('table_name')->delete();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #rows #table #laravel
ADD COMMENT
Topic
Name
4+8 =