Laravel delete all records from table
DB::table(‘table_name’)->delete(); is used to delete All records from table in laravel.
Syntax : Laravel delete all records from table example
Below is the simple example for Laravel delete all records from table
DB::table('users')->delete();
Will delete all records from table.
Advertisements