app->make('Litepie\Masters\Interfaces\DistributionareaRepositoryInterface'); return $distributionarearepo->findorNew($distributionarea); }); } if (Request::is('*/masters/targetgroup/*')) { Route::bind('targetgroup', function ($targetgroup) { $targetgrouprepo = $this->app->make('Litepie\Masters\Interfaces\TargetgroupRepositoryInterface'); return $targetgrouprepo->findorNew($targetgroup); }); } if (Request::is('*/masters/linkinfo/*')) { Route::bind('linkinfo', function ($linkinfo) { $linkinforepo = $this->app->make('Litepie\Masters\Interfaces\LinkinfoRepositoryInterface'); return $linkinforepo->findorNew($linkinfo); }); } if (Request::is('*/masters/status/*')) { Route::bind('status', function ($status) { $statusrepo = $this->app->make('Litepie\Masters\Interfaces\StatusRepositoryInterface'); return $statusrepo->findorNew($status); }); } if (Request::is('*/masters/mediatype/*')) { Route::bind('mediatype', function ($mediatype) { $mediatyperepo = $this->app->make('Litepie\Masters\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'); }); } }