Customize your router
To customize the router, there are 2 solutions:
1. Overwrite the contents of the corresponding controller
For example, the route content of the home page is
2. Override router
Since version S-Cart 6.1, you can create a new route content in the file app/routes/myroute.php (create a new one if it does not exist) to override S-Cart's default routes, or add new routers depending on your needs..
1. Overwrite the contents of the corresponding controller
For example, the route content of the home page is
So, just create one function index () in file app/Http/Controllers/ShopContentController.php to overwrite the content according to your needs.Route::get('/', '\App\Http\Controllers\ShopContentController@index')->name('home');
2. Override router
Since version S-Cart 6.1, you can create a new route content in the file app/routes/myroute.php (create a new one if it does not exist) to override S-Cart's default routes, or add new routers depending on your needs..

Related topics
Latest Document
- Customize order id 2022-04-19
- Order processing 2022-04-17
- Customer account 2022-04-17
- Developer Documentation 2020-04-09
- Upgrade guide 2022-03-19