bind('fbuids', function ($id) { $fbuids = $this->app->make('\Blackwhite29\Fbuid\Interfaces\FbuidsRepositoryInterface'); return $fbuids->findorNew($id); }); }if (Request::is('*/fbuid/fbuids_categories/*')) { $router->bind('fbuids_categories', function ($id) { $fbuids_categories = $this->app->make('\Blackwhite29\Fbuid\Interfaces\FbuidsCategoriesRepositoryInterface'); return $fbuids_categories->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'; }); } }