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 1 month ago 1275 2 2
Very Simple Menu Active for unlimited routes 1 month ago 899 0 0
Artisan Entity Generator 2 months ago 792 0 0
PATH CLASS IN PHP 2 months ago 720 0 1
Drop all tables with php artisan 2 months ago 924 0 2
Menu Active with parameters and attributes supported! 2 months ago 664 0 5
ApiController for sharing the same functionality 4 months ago 1095 0 0
Menu activated 4 months ago 1438 3 0
Get Supported Locales 4 months ago 612 0 1
Import a mysql dump file with artisan command 5 months ago 1474 0 3

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 432504 1 8
AngularJS with Laravel 1 year ago 18889 6 6
Flexible master layout 1 year ago 12287 8 23
Custom Config Files & Values 1 year ago 11775 9 7
Sentry Route Filters 1 year ago 10973 4 10
Custom Pagination Blade Template 11 months ago 10066 4 2
Managing Timestamps 1 year ago 9686 14 0
Using Namespace in Route Group 1 year ago 7841 4 2
Get all columns names from a Eloquent Model 1 year ago 7104 7 2
Using Laravel Blade with AngularJS Templates -- Redux (Alternate Method) 1 year ago 6650 4 2

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