app->make('Buyesrfolio\Transactions\Interfaces\PastTransactionRepositoryInterface'); return $past_transactionrepo->findorNew($past_transaction); }); } if (Request::is('*/transactions/transaction_file/*')) { Route::bind('transaction_file', function ($transaction_file) { $transaction_filerepo = $this->app->make('Buyesrfolio\Transactions\Interfaces\TransactionFileRepositoryInterface'); return $transaction_filerepo->findorNew($transaction_file); }); } } /** * 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'); }); } }