updated for Laravel 4.1