List of routes filtering the routes defined in vendor packages in Laravel
- 👤 Andrés Cruz
We already know how we can see the routes in Laravel through artisan with:
php artisan route:listAnd its shortcut:
php artisan r:lSee only the routes of our application
But, what happens if we want to see only the routes of our application and not those generated by third parties; For that, we have the following option:
php artisan r:l --exept-vendorWith this command, we can see all the routes except for the routes generated by third parties.
I agree to receive announcements of interest about this Blog.
We will know how we can exclude the routes generated by third parties in the vendor, in Laravel with artisan.