app->make('Btravel\Externaldata\Interfaces\GebecoRepositoryInterface'); return $gebecorepo->findorNew($gebeco); }); } if (Request::is('*/externaldata/tigges/*')) { Route::bind('tigges', function ($tigges) { $tiggesrepo = $this->app->make('Btravel\Externaldata\Interfaces\TiggesRepositoryInterface'); return $tiggesrepo->findorNew($tigges); }); } if (Request::is('*/externaldata/xplore/*')) { Route::bind('xplore', function ($xplore) { $xplorerepo = $this->app->make('Btravel\Externaldata\Interfaces\XploreRepositoryInterface'); return $xplorerepo->findorNew($xplore); }); } if (Request::is('*/externaldata/external_shipdata/*')) { Route::bind('external_shipdata', function ($external_shipdata) { $external_shipdatarepo = $this->app->make('Btravel\Externaldata\Interfaces\ExternalShipdataRepositoryInterface'); return $external_shipdatarepo->findorNew($external_shipdata); }); } } /** * Define the routes for the package. * * @return void */ public function map() { $this->mapWebRoutes(); } /** * Define the "web" routes for the package. * * These routes all receive session state, CSRF protection, etc. * * @return void */ protected function mapWebRoutes() { if (request()->segment(1) == 'api' || request()->segment(2) == 'api') { return; } Route::group([ 'middleware' => 'web', 'namespace' => $this->namespace, 'prefix' => trans_setlocale(), ], function ($router) { require (__DIR__ . '/../../routes/web.php'); }); } }