Can't call relationship in role model #1712
Answered
by
UncertaintyP
RayhanYulanda
asked this question in
Q&A
-
I've another relation that attach to role but when i tried to call it in controller with with/load/relations model it doesn't work
How call it in controller?
|
Beta Was this translation helpful? Give feedback.
Answered by
UncertaintyP
Mar 26, 2021
Replies: 1 comment 2 replies
-
The $role you show here is |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
RayhanYulanda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The $role you show here is
Spatie\Permission\Models\Role {#1587 ▼
but your role is a different model! Change it in the config file.