Lion.php 394B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. class Lion extends Command
  5. {
  6. protected $signature = 'zoo:lion';
  7. protected $description = 'lion eat tiger';
  8. public function __construct()
  9. {
  10. parent::__construct();
  11. }
  12. /**
  13. * 脚本入口
  14. */
  15. public function handle()
  16. {
  17. echo "I am Lion\n";
  18. }
  19. }