Se colocaran ejercios para practicar de codigobit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InspireCommand.php 1.0 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Commands;
  3. use Illuminate\Console\Scheduling\Schedule;
  4. use LaravelZero\Framework\Commands\Command;
  5. use function Termwind\{render};
  6. class InspireCommand extends Command
  7. {
  8. /**
  9. * The signature of the command.
  10. *
  11. * @var string
  12. */
  13. protected $signature = 'inspire {name=Artisan}';
  14. /**
  15. * The description of the command.
  16. *
  17. * @var string
  18. */
  19. protected $description = 'Display an inspiring quote';
  20. /**
  21. * Execute the console command.
  22. */
  23. public function handle(): void
  24. {
  25. render(<<<'HTML'
  26. <div class="py-1 ml-2">
  27. <div class="px-1 bg-blue-300 text-black">Laravel Zero</div>
  28. <em class="ml-1">
  29. Simplicity is the ultimate sophistication.
  30. </em>
  31. </div>
  32. HTML);
  33. }
  34. /**
  35. * Define the command's schedule.
  36. */
  37. public function schedule(Schedule $schedule): void
  38. {
  39. // $schedule->command(static::class)->everyMinute();
  40. }
  41. }