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 2612 2 4
Very Simple Menu Active for unlimited routes 3 months ago 1716 0 1
Artisan Entity Generator 4 months ago 1273 0 0
PATH CLASS IN PHP 4 months ago 1076 0 1
Drop all tables with php artisan 4 months ago 1598 1 3
Menu Active with parameters and attributes supported! 4 months ago 1077 0 6
ApiController for sharing the same functionality 6 months ago 1435 0 1
Menu activated 6 months ago 1949 3 0
Get Supported Locales 6 months ago 887 0 1
Import a mysql dump file with artisan command 7 months ago 1880 0 4

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 433355 1 9
AngularJS with Laravel 1 year ago 22788 6 7
Custom Config Files & Values 1 year ago 14825 9 9
Flexible master layout 1 year ago 13393 8 24
Custom Pagination Blade Template 1 year ago 12699 6 2
Sentry Route Filters 1 year ago 12443 4 10
Managing Timestamps 1 year ago 11792 14 0
Using Namespace in Route Group 1 year ago 8874 4 2
Get all columns names from a Eloquent Model 1 year ago 8380 7 2
Using Laravel Blade with AngularJS Templates -- Redux (Alternate Method) 1 year ago 7941 4 2

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