Files
Discount-Bandit/app/Console/Commands/ClearNotificationCount.php
YNWA Fawzy fd6ff90988 first beta release.v3-pre
version 3 to match with filament and liveware release number.
2023-12-06 12:01:31 +04:00

37 lines
686 B
PHP

<?php
namespace App\Console\Commands;
use App\Models\ProductStore;
use Illuminate\Console\Command;
class ClearNotificationCount extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'notification:clear';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Reset the count of the notification that has been sent daily.';
/**
* Execute the console command.
*/
public function handle()
{
\DB::table('product_store')
->update([
'notifications_sent' => 0
]);
}
}