Skip to content

Instantly share code, notes, and snippets.

@abrahamfast
Forked from JeffreyWay/routes.sh
Created April 28, 2016 06:11
Show Gist options
  • Save abrahamfast/e03d55f3d7ed66735e7a0e3fbd801be1 to your computer and use it in GitHub Desktop.
Save abrahamfast/e03d55f3d7ed66735e7a0e3fbd801be1 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