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 309 1 0
Flexible Master Layout for Laravel 5.1 1 week ago 431 1 1
Using old input to choose the right option in a select 4 weeks ago 243 0 1
Dropdown selection of hours for a given day 1 month ago 719 1 1
Blade Calendar 1 month ago 837 0 0
Route::deletable resource routing with delete available as GET 1 month ago 170 0 0
get a random record from a table 3 months ago 1618 2 1
Camel case attributes 3 months ago 783 0 0
Laravel 5 custom pagination view 5 months ago 1855 0 1
Get column names as array from Eloquent model 5 months ago 623 0 0
Validator for alphabetic chracters, dash, spaces and numbers. 6 months ago 474 0 0
Form with Files 6 months ago 806 1 0
Help identify table columns that are no longer used 6 months ago 384 0 0
Generate unique slugs 7 months ago 4058 5 4
Very Simple Menu Active for unlimited routes 7 months ago 2606 2 2
Echo sth. on variable fullfilling condition 7 months ago 285 0 0
Artisan Entity Generator 7 months ago 1896 0 0
PATH CLASS IN PHP 8 months ago 1600 0 1
Drop all tables with php artisan 8 months ago 2961 1 3
Menu Active with parameters and attributes supported! 8 months ago 1852 1 7
ApiController for sharing the same functionality 9 months ago 1902 0 1
Menu activated 10 months ago 2691 3 0
Get Supported Locales 10 months ago 1389 0 1
Import a mysql dump file with artisan command 10 months ago 2447 1 4
Generate a database dump file with using Artisan command 10 months ago 1686 2 3
Move domain permanetly(301) or temporarily (302) 10 months ago 1340 0 0
Fetch latest posts for each category 11 months ago 1969 2 0
PHPStorm Custom Live Templates and Theme, mostly Laravel related - v2 11 months ago 3456 5 0
Google Suggest Scraper 11 months ago 3712 2 3
Enable Routing on Unit Tests 11 months ago 1197 0 0

Most Popular Snippets

Snippet Posted
Multilingual i18n routes. 1 year ago 434718 1 9
AngularJS with Laravel 1 year ago 27361 6 8
Custom Config Files & Values 1 year ago 19822 10 10
Custom Pagination Blade Template 1 year ago 17367 6 2
Flexible master layout 1 year ago 15522 7 24
Managing Timestamps 1 year ago 14767 14 0
Sentry Route Filters 1 year ago 14080 6 11
Get all columns names from a Eloquent Model 1 year ago 10644 7 3
Convert existing MySQL database Schema into a Laravel Migration file 1 year ago 10533 7 12
Using Namespace in Route Group 1 year ago 10096 4 2

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