/** * Define the routes for the application. * * @return void */ public function map() { $lp_domains = \App\Http\Controllers\LandingPageController::getCurrentDomains(); if (in_array(request()->getHttpHost(), $lp_domains)) { $this->mapLandingPageRoutes(); } else { $this->mapApiRoutes(); $this->mapWebRoutes(); } // }