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
PHPStorm Custom Live Templates and Theme, mostly Laravel related - v2 1 week ago 193 0 0
Google Suggest Scraper 1 week ago 430 0 0
Enable Routing on Unit Tests 3 weeks ago 109 0 0
Add Empty option to Form::select dropdowns 3 weeks ago 141 0 0
App initialization 3 weeks ago 846 0 3
Form HTML Error Macro 1 month ago 659 1 2
Validator, Validation rule Or 1 month ago 492 0 0
Mulltiple Nested views w/o Blade Template 1 month ago 393 2 0
Get model columns 1 month ago 435 0 0
Split routes into different files. 1 month ago 856 1 2

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 8 months ago 430243 0 8
Flexible master layout 9 months ago 9382 5 19
AngularJS with Laravel 6 months ago 8084 4 5
Sentry Route Filters 10 months ago 6188 4 8
Managing Timestamps 10 months ago 5065 13 0
Using Namespace in Route Group 9 months ago 4682 4 2
Default layout [master.blade.php] 9 months ago 4614 6 5
Custom Config Files & Values 8 months ago 4472 5 7
Get all columns names from a Eloquent Model 10 months ago 4364 7 1
Bootstrap 3 Form Macros 10 months ago 4167 7 8

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