1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace App\Console\Commands;
- use Illuminate\Console\Command;
- use Illuminate\Support\Facades\Log;
- class Test extends Command
- {
-
- protected $signature = 'do:test {type=0}';
-
- protected $description = 'Command description';
-
- public function __construct()
- {
- parent::__construct();
- }
-
- public function handle()
- {
- $type = $this->argument('type');
- $str = sprintf('type:%s', $type);
- Log::info($str);
- dump($str);
- }
- }
|