Answers for "laravel deleting record from table"

PHP
2

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();
Posted by: Guest on September-02-2021
0

delete all rows from table laravel

MyModel::truncate();
Posted by: Guest on June-19-2020

Code answers related to "laravel deleting record from table"

Browse Popular Code Answers by Language