Updated for laravel 5