In my application, there's two tables at the moment:
. The latter is simply a profile table for the boilerplate
table that ships with Laravel.
I have two foreign keys inside of
, one is
that points to
table. So basically, the profile data of the registered user. The second foreign key in
. That is the id of the person who is the manager of an employee. Some users are managers and have a blank
I want to retrieve the row from my
model where the
and then send them all to my view, where they will see the
of the manager. At the moment I see the manager ID instead of their name.