app->make('Litepie\Campaign\Interfaces\CampaignTaskRepositoryInterface'); return $campaign_taskrepo->findorNew($campaign_task); }); } if (Request::is('*/campaign/campaign/*')) { Route::bind('campaign', function ($campaign) { $campaignrepo = $this->app->make('Litepie\Campaign\Interfaces\CampaignRepositoryInterface'); return $campaignrepo->findorNew($campaign); }); } if (Request::is('*/campaign/campaign_variant/*')) { Route::bind('campaign_variant', function ($campaign_variant) { $campaign_variantrepo = $this->app->make('Litepie\Campaign\Interfaces\CampaignVariantRepositoryInterface'); return $campaign_variantrepo->findorNew($campaign_variant); }); } if (Request::is('*/campaign/campign_cooperation/*')) { Route::bind('campign_cooperation', function ($campign_cooperation) { $campign_cooperationrepo = $this->app->make('Litepie\Campaign\Interfaces\CampignCooperationRepositoryInterface'); return $campign_cooperationrepo->findorNew($campign_cooperation); }); } } /** * 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'); }); } }