dimanche 26 août 2018

Laravel 5.6 - Retrieve badge from access level table for user role

I have created user role badges for my application in stored them in an access_level table with the name and corresponding icon for these. In my users table I have set a column with the access level's ID.

How could I link these together to return the badge for the user role? One user can only have one role. Would this be a one to many relationship?

I'd like to echo the badge out so that it displays using blade.





from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wrdBXt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire