Skip to content

Query role name by where like #1987

Answered by montanhes
montanhes asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I found an issue #985 with the solution. I was trying to search for roles on a datatable.

I just added the relationship and got it to work like all others relationships:

User::with('roles')

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by montanhes
Comment options

You must be logged in to vote
0 replies
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