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