Laravel Artisanの小ネタ

Laravelのartisanコマンドは省略形が使えます。
npm i (npm install)rails s (rails server)みたいな感じです。

前方一致

$ php artisan ti
Psy Shell v0.10.4 (PHP 7.4.8 — cli) by Justin Hileman
>>>

部分一致

部分一致もいけます。ただし確認はされます。

$ php artisan stat


 Command "stat" is not defined.


 Do you want to run "migrate:status" instead?  (yes/no) [no]:
 > yes
+------+--------------------------------------+-------+
| Ran? | Migration                            | Batch |
+------+--------------------------------------+-------+
| No   | 2014_10_12_000000_create_users_table |       |
+------+--------------------------------------+-------+

重複した場合は

$ php artisan id

                                
  Command "id" is not defined.  
                                
  Did you mean one of these?    
      make:middleware           
      make:provider