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 3 months ago 2606 2 4
Very Simple Menu Active for unlimited routes 3 months ago 1713 0 1
Artisan Entity Generator 4 months ago 1270 0 0
PATH CLASS IN PHP 4 months ago 1073 0 1
Drop all tables with php artisan 4 months ago 1591 1 3
Menu Active with parameters and attributes supported! 4 months ago 1074 0 6
ApiController for sharing the same functionality 6 months ago 1432 0 1
Menu activated 6 months ago 1946 3 0
Get Supported Locales 6 months ago 883 0 1
Import a mysql dump file with artisan command 7 months ago 1878 0 4

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 433348 1 9
AngularJS with Laravel 1 year ago 22769 6 7
Custom Config Files & Values 1 year ago 14798 9 9
Flexible master layout 1 year ago 13388 8 24
Custom Pagination Blade Template 1 year ago 12683 6 2
Sentry Route Filters 1 year ago 12438 4 10
Managing Timestamps 1 year ago 11776 14 0
Using Namespace in Route Group 1 year ago 8870 4 2
Get all columns names from a Eloquent Model 1 year ago 8373 7 2
Using Laravel Blade with AngularJS Templates -- Redux (Alternate Method) 1 year ago 7934 4 2

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