Overriding Routes

Last updated 2 months ago

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:

Route::group(['prefix' => 'admin'], function () {
Voyager::routes();
‚Äč
// Your overwrites here
Route::post('login', ['uses' => '[email protected]', 'as' => 'postlogin']);
});