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! =)


Glee Help Desk

Most Recent Snippets

Snippet Posted
Custom error page (500) for Laravel 5 2 weeks ago 314 0 0
.env file modify helper 4 weeks ago 280 0 0
CSS / JAVASCRIPT 1 month ago 358 1 0
Flexible Master Layout for Laravel 5.1 1 month ago 457 0 0
Generate UUID 1 month ago 743 2 0
Flexible Master Layout for Laravel 5.1 1 month ago 1014 1 2
Using old input to choose the right option in a select 1 month ago 415 1 1
Dropdown selection of hours for a given day 2 months ago 966 1 1
Blade Calendar 2 months ago 1216 0 0
Route::deletable resource routing with delete available as GET 2 months ago 303 0 0
get a random record from a table 4 months ago 1797 2 1
Camel case attributes 4 months ago 926 0 0
Laravel 5 custom pagination view 6 months ago 2277 0 1
Get column names as array from Eloquent model 6 months ago 738 0 0
Validator for alphabetic chracters, dash, spaces and numbers. 7 months ago 586 0 0
Form with Files 7 months ago 975 1 0
Help identify table columns that are no longer used 7 months ago 462 0 0
Generate unique slugs 8 months ago 4326 5 4
Very Simple Menu Active for unlimited routes 8 months ago 2742 2 2
Echo sth. on variable fullfilling condition 8 months ago 368 0 0
Artisan Entity Generator 8 months ago 2030 0 0
PATH CLASS IN PHP 9 months ago 1728 0 1
Drop all tables with php artisan 9 months ago 3343 2 3
Menu Active with parameters and attributes supported! 9 months ago 2003 1 7
ApiController for sharing the same functionality 10 months ago 1995 0 1
Menu activated 11 months ago 2868 3 0
Get Supported Locales 11 months ago 1503 0 1
Import a mysql dump file with artisan command 11 months ago 2602 1 4
Generate a database dump file with using Artisan command 11 months ago 1835 2 3
Move domain permanetly(301) or temporarily (302) 11 months ago 1451 0 0

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 435022 1 9
AngularJS with Laravel 1 year ago 28285 6 8
Custom Config Files & Values 1 year ago 21104 12 10
Custom Pagination Blade Template 1 year ago 18173 8 2
Flexible master layout 1 year ago 17168 7 24
Managing Timestamps 1 year ago 15533 14 0
Sentry Route Filters 1 year ago 14371 6 11
Convert existing MySQL database Schema into a Laravel Migration file 1 year ago 11463 7 12
Get all columns names from a Eloquent Model 1 year ago 11233 8 3
Using Namespace in Route Group 1 year ago 10345 4 2

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