Overriding Routes
You can override any Voyager routes by writing the routes you want to overwrite below Voyager::routes(). For example if you want to override your post LoginController:
1
Route::group(['prefix' => 'admin'], function () {
2
Voyager::routes();
3
4
// Your overwrites here
5
Route::post('login', ['uses' => '[email protected]', 'as' => 'postlogin']);
6
});
Copied!
Last modified 1mo ago
Export as PDF
Copy link