app->make('Speakers\Speakers\Interfaces\PersonRepositoryInterface'); return $personrepo->findorNew($person); }); } } /** * Define the routes for the package. * * @return void */ public function map() { } /** * 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, 'prefix' => trans_setlocale(), ], function ($router) { require (__DIR__ . '/../../routes/web.php'); }); } }