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
Generate UUID 1 week ago 333 1 0
Flexible Master Layout for Laravel 5.1 1 week ago 475 1 1
Using old input to choose the right option in a select 4 weeks ago 256 0 1
Dropdown selection of hours for a given day 1 month ago 734 1 1
Blade Calendar 1 month ago 859 0 0
Route::deletable resource routing with delete available as GET 1 month ago 176 0 0
get a random record from a table 3 months ago 1631 2 1
Camel case attributes 3 months ago 790 0 0
Laravel 5 custom pagination view 5 months ago 1887 0 1
Get column names as array from Eloquent model 5 months ago 632 0 0
Validator for alphabetic chracters, dash, spaces and numbers. 6 months ago 483 0 0
Form with Files 6 months ago 815 1 0
Help identify table columns that are no longer used 6 months ago 393 0 0
Generate unique slugs 7 months ago 4070 5 4
Very Simple Menu Active for unlimited routes 7 months ago 2618 2 2
Echo sth. on variable fullfilling condition 7 months ago 292 0 0
Artisan Entity Generator 7 months ago 1906 0 0
PATH CLASS IN PHP 8 months ago 1608 0 1
Drop all tables with php artisan 8 months ago 2983 1 3
Menu Active with parameters and attributes supported! 8 months ago 1861 1 7
ApiController for sharing the same functionality 9 months ago 1911 0 1
Menu activated 10 months ago 2701 3 0
Get Supported Locales 10 months ago 1397 0 1
Import a mysql dump file with artisan command 10 months ago 2465 1 4
Generate a database dump file with using Artisan command 10 months ago 1697 2 3
Move domain permanetly(301) or temporarily (302) 10 months ago 1350 0 0
Fetch latest posts for each category 11 months ago 1979 2 0
PHPStorm Custom Live Templates and Theme, mostly Laravel related - v2 11 months ago 3468 5 0
Google Suggest Scraper 11 months ago 3722 2 3
Enable Routing on Unit Tests 11 months ago 1206 0 0

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 434738 1 9
AngularJS with Laravel 1 year ago 27400 6 8
Custom Config Files & Values 1 year ago 19882 10 10
Custom Pagination Blade Template 1 year ago 17411 6 2
Flexible master layout 1 year ago 15647 7 24
Managing Timestamps 1 year ago 14805 14 0
Sentry Route Filters 1 year ago 14101 6 11
Get all columns names from a Eloquent Model 1 year ago 10675 7 3
Convert existing MySQL database Schema into a Laravel Migration file 1 year ago 10573 7 12
Using Namespace in Route Group 1 year ago 10115 4 2

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