console.php 677 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. use Hypervel\Support\Facades\Artisan;
  4. use Hypervel\Support\Facades\Schedule;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Console Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | This file is where you may define all of your Closure based console
  11. | commands. Each Closure is bound to a command instance allowing a
  12. | simple approach to interacting with each command's IO methods.
  13. |
  14. */
  15. Artisan::command('hello', function () {
  16. $this->comment('Hypervel is awesome!');
  17. })->purpose('This is a demo closure command.');
  18. // Schedule::command('hello')->everyFiveSeconds();