Updated for laravel 4.x

Updated so works with laravel 4.0 and 4.1