Skip to content

Can not use permissions relation with DTO #2430

Closed Answered by Tiskiel
Tiskiel asked this question in Q&A
Discussion options

You must be logged in to vote

My bad, I bad reading documentation to laravel-data to Spatie.

I need use :

Lazy::whenLoaded('permissions', $role, fn () => PermissionData::collection($role->permissions))

Spatie laravel-data

Replies: 1 comment

Comment options

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