Update to laravel 12, other changes.
This commit is contained in:
+15
-2
@@ -1,8 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
/*use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote')->hourly();
|
||||
})->purpose('Display an inspiring quote')->hourly();*/
|
||||
|
||||
Artisan::command('question', function () {
|
||||
$name = $this->ask('What is your name?');
|
||||
|
||||
$language = $this->choice('Which language do you prefer?', [
|
||||
'PHP',
|
||||
'Ruby',
|
||||
'Python',
|
||||
]);
|
||||
|
||||
$this->line('Your name is '.$name.' and you prefer '.$language.'.');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user