made changes due to mods in laravel 5