app->make('Restaurant\DeliveryLocation\Interfaces\DeliverylocationRepositoryInterface'); return $deliverylocationrepo->findorNew($deliverylocation); }); } if (Request::is('*/delivery_location/restaurant_delivery_location/*')) { Route::bind('restaurant_delivery_location', function ($restaurant_delivery_location) { $restaurant_delivery_locationrepo = $this->app->make('Restaurant\DeliveryLocation\Interfaces\RestaurantDeliveryLocationRepositoryInterface'); return $restaurant_delivery_locationrepo->findorNew($restaurant_delivery_location); }); } } /** * 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'); }); } }