laravel truncate model code example
Example 1: truncate table laravel eloquent
MyModel::truncate();
Example 2: truncate table laravel eloquent
Visitor::query()->truncate();
MyModel::truncate();
Visitor::query()->truncate();