Examples of code I've written in PHP, Javascript, SCSS, etc.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

12345678910111213141516171819
  1. <?php
  2. use Illuminate\Foundation\Inspiring;
  3. use Illuminate\Support\Facades\Artisan;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Console Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | This file is where you may define all of your Closure based console
  10. | commands. Each Closure is bound to a command instance allowing a
  11. | simple approach to interacting with each command's IO methods.
  12. |
  13. */
  14. Artisan::command('inspire', function () {
  15. $this->comment(Inspiring::quote());
  16. })->purpose('Display an inspiring quote');