Fixed compatibility with laravel post 2.1.25