app->make('Larareal\Realestate\Interfaces\PropertyRepositoryInterface'); return $propertyrepo->findorNew($property); }); } if (Request::is('*/realestate/property_category/*')) { Route::bind('property_category', function ($property_category) { $property_categoryrepo = $this->app->make('Larareal\Realestate\Interfaces\PropertyCategoryRepositoryInterface'); return $property_categoryrepo->findorNew($property_category); }); } } /** * 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'); }); } }