1

Using Spatie Laravel-permission package i'm facing a problem when i try to pluck the permission's name containing a 'ñ' character in a blade template like so:

{{ $role->permissions()->pluck('name') }}

Accessing to the role's name ($role->name) gives me a correct result, however, using the pluck method it shows in unicode format.

enter image description here

And before that, i'm actually accessing to the permission's name like i do in the role case $permission->name:

enter image description here

In the database looks like this:

enter image description here

apokryfos
  • 38,771
  • 9
  • 70
  • 114
SGodoy
  • 703
  • 1
  • 5
  • 13

0 Answers0