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

Routing

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.

PreviousConfigurationsNextMedia Manager

Last updated 6 years ago