Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Which's the correct way to get the voyager data from the DB? #5531

Answered by ousid
lamualfa asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @lamualfa

I don't get voyager data__, you mean by that, you need to get the records from the database?

Alright, there is a Voyager::model('the model') if you are looking to fetch the qualified name model, or if you want to set some rules, there are a bunch of methods you can use.

You may take a look here:
https://github.com/the-control-group/voyager/blob/1.5/src/Widgets/UserDimmer.php

Or here:
https://voyager-docs.devdojo.com/core-concepts/roles-and-permissions#customize-controller

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lamualfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants