<?php
namespace App\Console\Commands\Single;
use App\Models\Crop;
use Illuminate\Console\Command;
class DeleteCropsIcon extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:delete-crops-icon';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*/
public function handle()
{
Crop::query()->update([
'icon' => null,
'title_image' => null,
]);
}
}