79131177

Date: 2024-10-27 17:55:42
Score: 1
Natty:
Report link

I need more information to help you effectively. However, the problem seems to be in the relationship between the Job model and the Employer model. Make sure your Job model is defined like this:

class Job {

 public function employer()
 {
    return $this->belongsTo(Employer::class);
 }

}

Another thing to remember is that $job->employer can be null depending on the relationships in the database. So, it's important to validate it, like this: {{$job->employer->name ?? ''}}

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: André Araujo