title: Attempt to read property "email" on int - Laravel 8
body: <p>I have a Work model where one of its attributes is the requestor, I am trying to obtain the requestor´s data (I can already obtain the primary key).</p>
  <p>In this way I call the view:</p>
  <pre><code>    $obras = Obra::all();
      return view(&quot;obra.index&quot;, compact(&quot;obras&quot;));
  </code></pre>
  <p>The view:</p>
  <pre><code>    @forelse ($obras as $i)
          &lt;li&gt;{{ $i-&gt;requestor_id-&gt;email }}&lt;/li&gt;
      @empty
  </code></pre>
  <p>The relationship in the work model:</p>
  <pre><code>    public function requestor_id(){
      
      return $this-&gt;hasOne(User::class);
      }
  </code></pre>
  <p>Tables:</p>
  <p>Users(applicants) have: id, name, email, password etc.</p>
  <p>Work have: id, user_id, start_date etc.</p>