Test.php 612 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. class Test extends Command
  5. {
  6. /**
  7. * The name and signature of the console command.
  8. *
  9. * @var string
  10. */
  11. protected $signature = 'test';
  12. /**
  13. * The console command description.
  14. *
  15. * @var string
  16. */
  17. protected $description = 'Command description';
  18. /**
  19. * @return bool
  20. * @throws \GuzzleHttp\Exception\GuzzleException
  21. */
  22. public function handle()
  23. {
  24. $books = \App\Modules\Book\Services\BookConfigService::getBookByRole('叶安');
  25. dd($books);
  26. }
  27. }