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. Core concepts

Routing

PreviousConfigurationsNextMedia Manager

Last updated 6 years ago

After running the voyager installer you will see a few new routes that have been added to your routes/web.php file which look like the following:

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

This is where the Voyager routes will be rendered. You can change the admin prefix if you desire, or set any other route configuration you need, such as middleware or domain.

When creating a new BREAD type and specifying a slug for that BREAD, you can then visit that route from the following link:

URL/admin/slug-name

As an example, if we have a products table and we specified the slug to be products. You will now be able to visit the following URL:

URL/admin/products

Notice You may not see a link to your newly created routes or BREAD inside your admin menu. To create a new link in your admin menu visit the documentation for the .

menu section