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
Custom validation rule for phone numbers 2 weeks ago 222 1 0
Country Seeds 3 weeks ago 180 0 0
Helper for dates, seo titles, and use of Carbon 3 weeks ago 650 2 1
Custom Pagination Blade Template 1 month ago 765 0 0
Add Eager Loading to a Repository 1 month ago 613 2 0
Custom data pagination 1 month ago 349 0 0
AngularJS with Laravel 2 months ago 1879 2 2
Bootstrap 3 Table Macro 2 months ago 1115 3 7
Forced zero value for unchecked checkboxes. 2 months ago 616 0 2
Gravatar HTML macro 2 months ago 642 2 3

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 3 months ago 233697 0 4
Flexible master layout 4 months ago 7574 5 6
Default layout [master.blade.php] 5 months ago 2772 4 1
Bootstrap 3 Form Macros 5 months ago 2748 7 6
Sentry Route Filters 5 months ago 2243 4 4
Managing Timestamps 5 months ago 2223 13 0
Using Namespace in Route Group 4 months ago 1974 4 2
Get all columns names from a Eloquent Model 5 months ago 1953 6 0
AngularJS with Laravel 2 months ago 1879 2 2
Better error handler 4 months ago 1862 1 2

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