mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
37 lines
686 B
PHP
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
|
|
]);
|
|
|
|
}
|
|
}
|