Using Laravel4 Service Providers with PSR4 autoloading

Laravels service providers are pretty useful, and when you call $this->package(...) a lot of magic goes on behind the scenes such as registering your config files and view directories. This is great except it is hard coded to use the PSR0 directory structure and with the addition of…

#Tags: laravel, php, composer, autoload, service-providers | Comments

laravel-recipes.com - Code like you cook!

I'll come right out and say it; I can't cook unless I have a recipe and sometimes coding is a lot like that. Fortunately there's a fantastic guy who goes by the name of Chuck Heintzelman that runs a great little site Laravel Recipes that I find myself constantly referring…

#Tags: laravel, learning-resource | Comments

Clean menu management in Laravel 4

A menu is something that all websites need in one form or another and managing those menus can be a right nightmare but Laravel 4 has some awesome features that make this nice and easy. I was recently answering a question on Stack Overflow about generating menus in Laravel four…

#Tags: laravel, php, menus, view-composers, blade | Comments

Ebook Review: Laravel Application Development Blueprints

A while ago I mentioned that I would be reviewing the Laravel Application Development Blueprints learning resource and today I am going to complete that task! To be honest I didn't want to publish this review since I never like downing someone elses work but I have an agreement that…

#Tags: laravel, review, ebook | Comments

Laravel Model Validation using Observers

I've seen a lot of great attempts at validation in Laravel to avoid controller bloat by having the validation done there. One such attempt is the Ardent package by Max Ehsan (LarvelBook). The issue with this approach is that it requires you to extend another class. This becomes an issue…

#Tags: laravel, php, eloquent, validation | Comments

Allow developer access when your app is "down"

Laravel has a great feature - maintenance mode. calling php artisan down from the command line will put your app into maintenance mode displaying only what is returned from the App::down closure in app/start/global.php but there is a problem with this method - it's down for…

#Tags: laravel, php, whitelist, down, maintenance, developers | Comments