Skip to content
Discussion options

You must be logged in to vote

Hello @cdo9

Backpack register some extra routes not exposed in custom.php, they are in base.php: https://github.com/Laravel-Backpack/CRUD/blob/main/src/routes/backpack/base.php

To customize them, you can copy the file from the vendor folder into your routes/backpack/base.php and do the needed changes there:

Route::group(
    [
        'namespace' => 'Backpack\CRUD\app\Http\Controllers',
        'middleware' => config('backpack.base.web_middleware', 'web'),
        'prefix' => config('backpack.base.route_prefix'),
+       'domain' => 'admin.mydomain3.com
    ],
    function () {
      // ... the routes setup
    });

That way those routes will only be available under that domain.

Hope that …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@cdo9
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cdo9
Comment options

Answer selected by pxpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants