[Upg] refactoring laravel layout object with baseController