badge with link and show name instead id
Hello everyone! Have a nice weekend!
I want to ask about my code here below
firstly I want to make each badge from the relationship have a link, not only 1 link but multiple links from how much data from the relationship
second, I want to show instead but still want to get the id for link the URL each badge
how can I do that?
Thank you!
Solution:Jump to solution
and the record will give you the entire model instance that you can extract the correct data from
3 Replies
use room_name instead of the id in the column name
then in url(), pass $record instead of $state
Solution
and the record will give you the entire model instance that you can extract the correct data from
Thank you for the respond! Glad for the help it works, but i stuck when access the relation
it says there is no eleqouent, and tries to dd to the it show the eloqeunt but added not show the eloquent only relationship, how i can access that?