CUSTOM ROUTE IN LARAVEL

  1. seller.php
<?phpRoute::get('/customer/index', function () {dd('This is customer route');});
protected function mapCustomerRoutes(){Route::prefix('customer')->namespace($this->namespace)->group(base_path('routes/customer.php'));}
base_path('routes/customer/customer.php'
public function map(){$this->mapApiRoutes();$this->mapWebRoutes();$this->mapCustomerRoutes();}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Azen Moktan

Azen Moktan

A highly resourceful, innovative, and competent Software Engineer with extensive experience in the design , coding and problem solving .