Created
October 15, 2014 17:21
-
-
Save JeffreyWay/2b292d6aafb98977788f to your computer and use it in GitHub Desktop.
Add this to your ~/.bashrc file (or anywhere related) to give yourself an easy way to view the routes in your Laravel app, or filter the results down to a particular search query.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function routes() | |
{ | |
if [ $# -eq 0 ]; then | |
php artisan route:list | |
else | |
php artisan route:list | grep ${1} | |
fi | |
} |
Thanks.
Thanks Jeffrey, this is very helpful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now, you can do...
...which will spit out all registered routes in your app.
Or, if you do...
You'll only see the admin-specific routes.