bind('action', function ($id) { $action = $this->app->make('\Fegerer\AppTest\Interfaces\ActionRepositoryInterface'); return $action->findorNew($id); }); }if (Request::is('*/app_test/actiontypecategory/*')) { $router->bind('actiontypecategory', function ($id) { $actiontypecategory = $this->app->make('\Fegerer\AppTest\Interfaces\ActiontypecategoryRepositoryInterface'); return $actiontypecategory->findorNew($id); }); }if (Request::is('*/app_test/actiontype/*')) { $router->bind('actiontype', function ($id) { $actiontype = $this->app->make('\Fegerer\AppTest\Interfaces\ActiontypeRepositoryInterface'); return $actiontype->findorNew($id); }); } } /** * Define the routes for the application. * * @param \Illuminate\Routing\Router $router * * @return void */ public function map(Router $router) { $router->group(['namespace' => $this->namespace], function ($router) { require __DIR__ . '/../Http/routes.php'; }); } }