Voyager
HomeGithubIssues
1.1
1.1
  • Introduction
  • Getting started
    • What is Voyager
    • Installation
    • Upgrading
    • Configurations
  • Core concepts
    • Routing
    • Media Manager
    • Menus and Menu Builder
    • Database Manager
    • BREAD Builder
    • Settings
    • Compass
    • Roles and Permissions
    • Helper methods
    • Multilanguage
  • Customization
    • Overriding files
    • Overriding Routes
    • Additional CSS and JS
    • Enabling Soft-Delete
    • Custom relationship attributes
    • TinyMCE
    • Adding custom Formfields
    • Coordinates
  • Troubleshooting
    • Using HTTPS on yours site
    • Missing required parameter
Powered by GitBook
On this page
Export as PDF
  1. Customization

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:

Route::group(['prefix' => 'admin'], function () {
   Voyager::routes();

   // Your overwrites here
   Route::post('login', ['uses' => 'MyAuthController@postLogin', 'as' => 'postlogin']);
});
PreviousOverriding filesNextAdditional CSS and JS

Last updated 6 years ago