Answers for "delete table laravel eloquent"

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
1

how delete the table in laravel in the commend

php artisan migrate:reset
Posted by: Guest on April-10-2021

Code answers related to "delete table laravel eloquent"

Browse Popular Code Answers by Language