Skip to content

Can't call relationship in role model #1712

Answered by UncertaintyP
RayhanYulanda asked this question in Q&A
Discussion options

You must be logged in to vote

The $role you show here is Spatie\Permission\Models\Role {#1587 ▼ but your role is a different model! Change it in the config file.

Replies: 1 comment 2 replies

Comment options

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

@RayhanYulanda
Comment options

Answer selected by RayhanYulanda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants