app->make('Litepie\Master\Interfaces\DistributionareaRepositoryInterface'); return $distributionarearepo->findorNew($distributionarea); }); } if (Request::is('*/master/targetgroup/*')) { Route::bind('targetgroup', function ($targetgroup) { $targetgrouprepo = $this->app->make('Litepie\Master\Interfaces\TargetgroupRepositoryInterface'); return $targetgrouprepo->findorNew($targetgroup); }); } if (Request::is('*/master/linkinfo/*')) { Route::bind('linkinfo', function ($linkinfo) { $linkinforepo = $this->app->make('Litepie\Master\Interfaces\LinkinfoRepositoryInterface'); return $linkinforepo->findorNew($linkinfo); }); } if (Request::is('*/master/status/*')) { Route::bind('status', function ($status) { $statusrepo = $this->app->make('Litepie\Master\Interfaces\StatusRepositoryInterface'); return $statusrepo->findorNew($status); }); } if (Request::is('*/master/mediatype/*')) { Route::bind('mediatype', function ($mediatype) { $mediatyperepo = $this->app->make('Litepie\Master\Interfaces\MediatypeRepositoryInterface'); return $mediatyperepo->findorNew($mediatype); }); } } /** * 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() { Route::group([ 'middleware' => 'web', 'namespace' => $this->namespace, ], function ($router) { require (__DIR__ . '/../../routes/web.php'); }); } }