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

 Route::get('/', '\App\Http\Controllers\ShopContentController@index')->name('home');

So, just create one function index () in file app/Http/Controllers/ShopContentController.php to overwrite the content according to your needs.
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