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 1974 2 2
Very Simple Menu Active for unlimited routes 2 months ago 1320 0 0
Artisan Entity Generator 3 months ago 1025 0 0
PATH CLASS IN PHP 3 months ago 917 0 1
Drop all tables with php artisan 3 months ago 1231 0 2
Menu Active with parameters and attributes supported! 3 months ago 891 0 5
ApiController for sharing the same functionality 5 months ago 1273 0 1
Menu activated 5 months ago 1685 3 0
Get Supported Locales 5 months ago 745 0 1
Import a mysql dump file with artisan command 6 months ago 1684 0 3

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 432961 1 8
AngularJS with Laravel 1 year ago 20808 6 7
Custom Config Files & Values 1 year ago 13425 9 8
Flexible master layout 1 year ago 12889 8 23
Sentry Route Filters 1 year ago 11782 4 10
Custom Pagination Blade Template 1 year ago 11438 5 2
Managing Timestamps 1 year ago 10800 14 0
Using Namespace in Route Group 1 year ago 8432 4 2
Get all columns names from a Eloquent Model 1 year ago 7785 7 2
Using Laravel Blade with AngularJS Templates -- Redux (Alternate Method) 1 year ago 7305 4 2

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