inside providers Routeserviceproviders
inside map function :
inside routeserviceprovider class :
now create web2.php inside
web2.php
now you are done , you can use web2.php now
inside map function :
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
$this->mapWeb2Routes();
}
inside routeserviceprovider class :
protected function mapWeb2Routes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web2.php'));
}
now create web2.php inside
web2.php
<?php
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/', 'FrontController@index')->name('front.index');
?>
now you are done , you can use web2.php now
Comments
Post a Comment