Skip to content

Instantly share code, notes, and snippets.

@thinkstylestudio
Forked from JeffreyWay/routes.sh
Created July 18, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkstylestudio/a135de9f7783a7ff82e3b4a270c442ae to your computer and use it in GitHub Desktop.
Save thinkstylestudio/a135de9f7783a7ff82e3b4a270c442ae 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.
function routes()
{
if [ $# -eq 0 ]; then
php artisan route:list
else
php artisan route:list | grep ${1}
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment