Fixing laravel 3 methods updating them to Laravel 4 versions