25 lines
561 B
PHP
25 lines
561 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use App\Jobs\InitializeLeaveDays;
|
|
|
|
class InitializeLeaveDaysCommand extends Command
|
|
{
|
|
protected $signature = 'initialize:leavedays {year?}';
|
|
protected $description = 'Cấp phép năm cho tất cả người dùng';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function handle()
|
|
{
|
|
$year = $this->argument('year');
|
|
// Không sử dụng nữa, theo rule mới
|
|
// InitializeLeaveDays::dispatch($year);
|
|
}
|
|
}
|