ldc-showroom-bo/app/Console/Commands/ExportShowRoom.php
2024-01-08 15:28:00 +01:00

33 lines
652 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\ShowroomExport;
use Illuminate\Console\Command;
class ExportShowRoom extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'uwil:show-room:export';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Export showroom data : a zip file with json data and associated pictures';
/**
* Execute the console command.
*
* @return void
*/
public function handle(): void
{
\dispatch_sync(new ShowroomExport());
}
}