Laravelで正しくルート定義ができているか確かめる
$ docker-compose exec workspace php artisan route:list
これで、ルート定義が正しくされているか確認することができる。
+---------+-------------+------------------+------------------+--------------------------------------------------------------+----------------+
| Domain | Method | URI | Name | Action | Middleware |
+---------+-------------+------------------+------------------+--------------------------------------------------------------+----------------+
| | GET|HEAD | / | product.index | App\Http\Controllers\ProductController@index | web |
+---------+-------------+------------------+------------------+--------------------------------------------------------------+----------------+
正しく定義されていれば上のように表示される。
railsの時はrails routes
とすれば確認できるが、laravelの時はphp artisan route:list