app->make('Btravel\Cards\Interfaces\CardRepositoryInterface'); return $cardrepo->findorNew($card); }); } if (Request::is('*/cards/offer/*')) { Route::bind('offer', function ($offer) { $offerrepo = $this->app->make('Btravel\Cards\Interfaces\OfferRepositoryInterface'); return $offerrepo->findorNew($offer); }); } if (Request::is('*/cards/bt_card_card/*')) { Route::bind('bt_card_card', function ($bt_card_card) { $bt_card_cardrepo = $this->app->make('Btravel\Cards\Interfaces\BtCardCardRepositoryInterface'); return $bt_card_cardrepo->findorNew($bt_card_card); }); } if (Request::is('*/cards/brand/*')) { Route::bind('brand', function ($brand) { $brandrepo = $this->app->make('Btravel\Cards\Interfaces\BrandRepositoryInterface'); return $brandrepo->findorNew($brand); }); } } /** * 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'); }); } }