Answers for "delete data from table using artisan command line"

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 data from table using artisan command line"

Browse Popular Code Answers by Language