title: Laravel HasMany relationship with json column
body: <pre><code>public function test()
  {
      return $this-&gt;hasMany(MultiTenant::getModel('TestModel'), 'value', 'data-&gt;variable');
  }
  </code></pre>
  
  <p>I'm trying to get key value from json column and get related objects but this </p>
  
  <blockquote>
    <p>data->variable</p>
  </blockquote>
  
  <p>doesn't work, any solutions?</p>