some corrections to work with laravel 5