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

Additional CSS and JS

As of the latest version you can now add additional CSS and JS files to the voyager master blade without having to copy or modify the blade file itself removing potential manual migration headaches later on. The CSS and JS files are added after any Voyager assets so you can override styles and functionality comfortably.

This is all handled via the voyager.php config, if you have not started with a fresh install of 0.11.10+ you will need to manually add this to your config.

    // Here you can specify additional assets you would like to be included in the master.blade
    'additional_css' => [
        //'css/custom.css',
    ],

    'additional_js' => [
        //'js/custom.js',
    ],

You may want to look at the /vendor/tcg/voyager/publishable/config/voyager.php to see the config layout and check for any missing options.

PreviousOverriding RoutesNextEnabling Soft-Delete

Last updated 6 years ago