Welcome to laravelsnippets.com

A repository of useful code snippets for Laravel PHP framework. Submit, grab and share!

Source code of the site - Github link . We accept pull requests! =)

Most Recent Snippets

Snippet Posted
Generate unique slugs 2 months ago 2093 2 2
Very Simple Menu Active for unlimited routes 2 months ago 1382 0 0
Artisan Entity Generator 3 months ago 1059 0 0
PATH CLASS IN PHP 3 months ago 935 0 1
Drop all tables with php artisan 3 months ago 1286 1 2
Menu Active with parameters and attributes supported! 3 months ago 914 0 5
ApiController for sharing the same functionality 5 months ago 1299 0 1
Menu activated 5 months ago 1730 3 0
Get Supported Locales 5 months ago 770 0 1
Import a mysql dump file with artisan command 6 months ago 1718 0 4

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 433018 1 8
AngularJS with Laravel 1 year ago 21139 6 7
Custom Config Files & Values 1 year ago 13656 9 8
Flexible master layout 1 year ago 12970 8 23
Sentry Route Filters 1 year ago 11898 4 10
Custom Pagination Blade Template 1 year ago 11658 5 2
Managing Timestamps 1 year ago 10980 14 0
Using Namespace in Route Group 1 year ago 8508 4 2
Get all columns names from a Eloquent Model 1 year ago 7892 7 2
Using Laravel Blade with AngularJS Templates -- Redux (Alternate Method) 1 year ago 7425 4 2

Want to help with the site? We accept pull requests! Find us on Github