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 3 weeks ago 383 0 0
.env file modify helper 1 month ago 353 1 0
CSS / JAVASCRIPT 1 month ago 415 1 0
Flexible Master Layout for Laravel 5.1 1 month ago 536 0 0
Generate UUID 1 month ago 776 2 0
Flexible Master Layout for Laravel 5.1 1 month ago 1066 1 2
Using old input to choose the right option in a select 2 months ago 431 1 1
Dropdown selection of hours for a given day 2 months ago 983 1 1
Blade Calendar 2 months ago 1250 0 0
Route::deletable resource routing with delete available as GET 3 months ago 312 0 0
get a random record from a table 4 months ago 1825 2 1
Camel case attributes 5 months ago 941 0 0
Laravel 5 custom pagination view 6 months ago 2340 0 1
Get column names as array from Eloquent model 6 months ago 754 0 0
Validator for alphabetic chracters, dash, spaces and numbers. 7 months ago 594 0 0
Form with Files 7 months ago 994 1 0
Help identify table columns that are no longer used 7 months ago 468 0 0
Generate unique slugs 8 months ago 4358 5 4
Very Simple Menu Active for unlimited routes 8 months ago 2757 2 2
Echo sth. on variable fullfilling condition 8 months ago 373 0 0
Artisan Entity Generator 9 months ago 2042 0 0
PATH CLASS IN PHP 9 months ago 1739 0 1
Drop all tables with php artisan 9 months ago 3405 2 3
Menu Active with parameters and attributes supported! 9 months ago 2013 1 7
ApiController for sharing the same functionality 11 months ago 2005 0 1
Menu activated 11 months ago 2887 3 0
Get Supported Locales 11 months ago 1511 0 1
Import a mysql dump file with artisan command 11 months ago 2618 1 4
Generate a database dump file with using Artisan command 11 months ago 1860 2 3
Move domain permanetly(301) or temporarily (302) 11 months ago 1464 0 0

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 435054 1 9
AngularJS with Laravel 1 year ago 28424 6 8
Custom Config Files & Values 1 year ago 21317 12 10
Custom Pagination Blade Template 1 year ago 18307 8 2
Flexible master layout 1 year ago 17327 7 24
Managing Timestamps 1 year ago 15688 14 0
Sentry Route Filters 1 year ago 14410 6 11
Convert existing MySQL database Schema into a Laravel Migration file 1 year ago 11608 7 12
Get all columns names from a Eloquent Model 1 year ago 11337 8 3
Using Namespace in Route Group 1 year ago 10386 4 2

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