-
-
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.
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment