<?php

namespace App\Console\Commands;

use App\Jobs\UpdateVehicleSearchContent;
use Illuminate\Console\Command;
use Illuminate\Foundation\Bus\DispatchesJobs;

class TriggerSearchContentUpdate extends Command
{
    use DispatchesJobs;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'vehicles:update-search-content';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Triggers an update for search_content field';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $this->dispatch(new UpdateVehicleSearchContent(''));
    }
}
