laravel2019's avatar

Why can't I see the route list?

Hi and I created the controller like this.

php artisan make:controller PostController -r

It looks good but when I

php artisan route:list

I only see

+--------+----------+----------+------+---------+--------------+
| Domain | Method   | URI      | Name | Action  | Middleware   |
+--------+----------+----------+------+---------+--------------+
|        | GET|HEAD | /        |      | Closure | web          |
|        | GET|HEAD | api/user |      | Closure | api,auth:api |
+--------+----------+----------+------+---------+--------------+

I though it creates all the routes as well. No?

How can I generate routes for a currently created controller?

Thanks

0 likes
1 reply

Please or to participate in this conversation.