Se colocaran ejercios para practicar de codigobit
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

48 lignes
1.0 KiB

  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. }