empty table laravel code example
Example 1: truncate table laravel eloquent
MyModel::truncate();
Example 2: truncate table laravel eloquent
Visitor::query()->truncate();
Example 3: empty table in laravel
\App\Model::query()->delete();
MyModel::truncate();
Visitor::query()->truncate();
\App\Model::query()->delete();