That happens cause, when you have a 1->n
relation on your database, the n
part may has more than one register related to it. But, ain't the same the other way around. A post
may have n
comments, but a comment belongs to
only one post. So, the method has('model')
doesn't apply to this cases.
The solution for you problem, though, would be veirify if the variable is set. Try to do this on the controller.
Hope it help!