I found the solution in Laravel Accessors and Mutators. Link below: https://laracasts.com/discuss/ch...
Hey guys, thanks for reply my question. I have tried and finally found this solution. Don't know if...
Fixed! I added a foreach loop on $ user-> roles () and then called the "name" field ins...
The first code is in your controller class? You can do that in the controller class and then return...
nvanselow, Thanks a lot for the help. I'll try this! Have a nice day!
The Laravel portal for problem solving, knowledge sharing and community building.