Skip to content
Discussion options

You must be logged in to vote

Hey @mialex

Let's say your current routes setup is like:

  • .env: APP_URL = domain.test
  • config/backpack/base.php: route_prefix = admin
  • Controllers's namespace: App\Http\Controllers\Admin;
  • https://domain.test/admin/order

And In the demo, you can notice a pet-shop:

In the same way, I recommend you create separate routes & CRUD controllers for each role. To change the word admin from the URL, you changeroute_prefix. For example:

  • You change route_prefix = admin shop.
  • Create CRUDs for users in App\Http\Controllers\Backpack\User namespace.
  • Move CRUD…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mialex
Comment options

@karandatwani92
Comment options

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