title: Creating default object from empty value - Laravel 5
body: <p>I dont know how fix this error, my code:</p>
  
  <pre><code>$subscriptions = Auth::user()-&gt;subscriptions;
  
  foreach($subscriptions as $subscription)
  {
      $subs = Subscription::find($subscription-&gt;id);
  
      $subs-&gt;subscriptionstatus_id = 0;
  
      $subs-&gt;save();
  
  }
  </code></pre>
  
  <p>and laravel response with <code>Creating default object from empty value</code> in line when I assign <code>0</code>, what can I do?</p>
  
  <p>thanks</p>