Added for upgrade to laravel 4.1