JimmiRobles
JimmiRobles
FFilament
Created by JimmiRobles on 2/9/2024 in #❓┊help
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
2 replies