all feature

This commit is contained in:
antv
2026-06-29 11:55:33 +07:00
parent 08d13336cd
commit 8a77324f89
59 changed files with 5587 additions and 145 deletions
@@ -0,0 +1,33 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\User;
class ResetCardsCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'cards:reset';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Reset toàn bộ thẻ của hệ thống về 0 vào đầu tháng';
/**
* Execute the console command.
*/
public function handle()
{
User::where('status', User::STATUS_ACTIVE)->update(['card' => 0]);
$this->info('Đã reset toàn bộ số lượng thẻ của nhân viên đang hoạt động về 0 thành công!');
}
}