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 1261 2 2
Very Simple Menu Active for unlimited routes 1 month ago 891 0 0
Artisan Entity Generator 2 months ago 791 0 0
PATH CLASS IN PHP 2 months ago 719 0 1
Drop all tables with php artisan 2 months ago 919 0 2
Menu Active with parameters and attributes supported! 2 months ago 660 0 5
ApiController for sharing the same functionality 4 months ago 1092 0 0
Menu activated 4 months ago 1435 3 0
Get Supported Locales 4 months ago 609 0 1
Import a mysql dump file with artisan command 5 months ago 1471 0 3

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 432498 1 8
AngularJS with Laravel 1 year ago 18865 6 6
Flexible master layout 1 year ago 12279 8 23
Custom Config Files & Values 1 year ago 11751 9 7
Sentry Route Filters 1 year ago 10957 4 10
Custom Pagination Blade Template 11 months ago 10031 4 2
Managing Timestamps 1 year ago 9667 14 0
Using Namespace in Route Group 1 year ago 7831 4 2
Get all columns names from a Eloquent Model 1 year ago 7100 7 2
Using Laravel Blade with AngularJS Templates -- Redux (Alternate Method) 1 year ago 6638 4 2

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