0
0

More than 3 years have passed since last update.

【Laravel】Laravelで正しくルート定義ができているか確かめる

Posted at

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0