title: Laravel 5 model field explode to link to other models
body: <p>I have a field in my <code>master</code> table with a field called <code>data</code> which has ids stored like <code>0005,0006,0010</code> which are keys for records to be extracted from another table called <code>table1</code>. It's kinda like a belongsToMany except it's not broken into individual records, but same functionality. </p>
  
  <p>I'm wondering how to explode <code>master.data</code> field off the comma and return the records for <code>table1</code> in the model. In this example, I'm wondering how to return <code>table1.* where table1.id=0005 or 0006 or 0010</code>.</p>
  
  <p>If I was to call it, it would be something like auth()->user()->master()->table1() with 5,6,10 in that array</p>