title: Indirect modification of overloaded property has no effect
body: <p>When I run the below API I got this error </p>
  
  <blockquote>
    <p>"Indirect modification of overloaded property App\User::$attendance has no effect".</p>
  </blockquote>
  
  <p>I still cannot figure it out for so long. Could you please someone help me on this.</p>
  
  <pre><code>public function apiPresent( $id, Request $request )
  {
      $tokenuser = User::with('attendance')
                      -&gt;where('token', $request-&gt;input('token'))-&gt;first();
      $present   = $request-&gt;input('present');
      $user      = User::with('attendance')-&gt;find($id);
  
      if( $user &amp;&amp; $tokenuser == $user )
      {
          $user-&gt;attendance-&gt;present = $present;
          $user-&gt;attendance-&gt;date    = Carbon::now()-&gt;format('d-m-Y');
          $user-&gt;attendance-&gt;time    = Carbon::now()-&gt;format('H-i');
          $user-&gt;attendance-&gt;save();
  
          return response()-&gt;json([
                      'status'  =&gt; 'Ok',
                      'message' =&gt; 'Present Changed',
                      'Present' =&gt; $user-&gt;attendance-&gt;present
          ]);
      }
      else
      {
          return response()-&gt;json([
                      'status'  =&gt; 'Fail',
                      'message' =&gt; 'Your state does not changed'
          ]);
      }
  }
  </code></pre>