title: When to use belongsTo() and when hasOne() in laravel?
body: <p>When defining a one-to-one relationship between models in laravel, we will say :</p>
  
  <pre><code>class Model1 extends Model
  {
       public function model2()
       { 
           return $this-&gt;hasOne('App\Model2');
       }
  }
  </code></pre>
  
  <p>and for Model2 we will use <code>belongsTo('App\Model1')</code> . </p>
  
  <p>Is there a logic on how to decide on which end we will use each function?</p>