Voyager
HomeGithubIssues
1.0
1.0
  • Introduction
  • Getting started
    • What is Voyager
    • Installation
    • Upgrading
      • Version 1.0 to 1.0.*
      • Version 0.11 to 1.0
    • Configurations
  • Core concepts
    • Routing
    • Media Manager
    • Menus and Menu Builder
    • Database Manager
    • BREAD Builder
    • Settings
    • Roles and Permissions
    • Helper methods
    • Multilanguage
    • Adding Custom FormFields
  • Customization
    • Overriding Views
    • Using custom HTTP controllers
    • Overriding Routes
    • Additional CSS and JS
    • Enabling Soft-Delete
  • Troubleshooting
    • Using HTTPS on yours site
Powered by GitBook
On this page
Export as PDF
  1. Customization

Using custom HTTP controllers

You can use your own Controller by extending Voyager's Controllers. To do it, first define your controller Namespace at config/voyager.php :

/*
|--------------------------------------------------------------------------
| Controllers config
|--------------------------------------------------------------------------
|
| Here you can specify voyager controller settings
|
*/

'controllers' => [
    'namespace' => 'App\\Http\\Controllers\\Voyager',
],

then run php artisan voyager:controllers, voyager will now use the child controllers which will be created at App/Http/Controllers/Voyager

PreviousOverriding ViewsNextOverriding Routes

Last updated 6 years ago