Showing enum label using spatie permissions package

Hi! So, i'm using spatie permissions package, when i create a role and assign permissions need to show the labels (for a more descriptive name to the user) but, only show the table name instead, already assing cast, extend spatie model, but, when i use the ->relationship doesnt work, if i use ->options(PermissionEnum::class) yes but, cannot save to db, hope you guys can help here is a gist with the code: https://gist.github.com/jimmiroblescasanova/2aa6b55c5434d8ba0a97969624d5ed26
Gist
Showing permissions with label, using spatie package
Showing permissions with label, using spatie package - Permission.php
0 Replies
No replies yetBe the first to reply to this messageJoin