export file laravel 6 code example Example: create a exporter in laravel command php artisan make:export UsersExport --model=User