title: laravel morphTo how to use custom columns?
body: <p>I have three tables like this</p>
  
  <pre><code>business:
  |--id--|--owner_code--|--owner_type--|
  |---1--|--WSWJDIXSWS--|---company----|
  |---2--|--ADSOOEKL23--|---personal---|
  company:
  |--id--|-----code-----|----name---|
  |---1--|--WSWJDIXSWS--|----ibm----|
  |---2--|--SDFSDFSDFS--|----h3c----|
  presonal:
  
  |--id--|-----code-----|-----name----|
  |---1--|--ADSOOEKL23--|-----jack----|
  |---2--|--SDFSDFSDFS--|----brown----|
  </code></pre>
  
  <p>Model Company:</p>
  
  <pre><code>class Company extends Model
  {
      public function business() {
          return $this-&gt;morphMany('App\Models\Business', 'owner');
      }
  }
  </code></pre>
  
  <p>Model Personal:</p>
  
  <pre><code>class Personal extends Model
  
      {
          public function business() {
              return $this-&gt;morphMany('App\Models\Business', 'owner');
          }
      }
  </code></pre>
  
  <p>Model Business:</p>
  
  <pre><code>class Business extends Model
  {
  
      public function owner(){
          return $this-&gt;morphTo();
      }
  }
  </code></pre>
  
  <p>IndexController:</p>
  
  <pre><code>class IndexController extends Controller
  {
      public function index(){
          //DB::connection()-&gt;enableQueryLog();
          //$queries = DB::getQueryLog();
          $businesses = Business::get();
          $businesses-&gt;load('owner');
  
          return view('index')-&gt;with(compact('businesses'));
  
      }
  }
  </code></pre>
  
  <p>view:index.blade</p>
  
  <pre><code>&lt;table bgcolor="#7fffd4"  width="400"&gt;
      &lt;tr&gt;
          &lt;td colspan="3" bgcolor="#f5f5dc" align="center"&gt;BUSINESS&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td bgcolor="#f0f8ff"&gt;ID&lt;/td&gt;
          &lt;td bgcolor="#f0f8ff"&gt;OWNER_TYPE&lt;/td&gt;
          &lt;td bgcolor="#f0f8ff"&gt;NAME&lt;/td&gt;
      &lt;/tr&gt;
      @foreach($businesses as $business)
      &lt;tr&gt;
          &lt;td bgcolor="#f0f8ff"&gt;{{$business-&gt;id}}&lt;/td&gt;
          &lt;td bgcolor="#f0f8ff"&gt;{{$business-&gt;owner_type}}&lt;/td&gt;
          &lt;td bgcolor="#f0f8ff"&gt;{{object_get($business-&gt;owner, 'name', 'unfind')}}&lt;/td&gt;
      &lt;/tr&gt;
      @endforeach
  &lt;/table&gt;
  </code></pre>
  
  <p>when i run the app all the name is "unfind"</p>
  
  <p>here i use debuger
  i find the queries is:</p>
  
  <pre><code>//select * from `businesses`
  //select * from `companies` where `companies`.`id` in ('')
  //select * from `personals` where `personals`.`id` in ('')
  
  select * from `businesses`
  
  select * from `companies` where `companies`.`id` in ('company_code_01', 'company_code_02')
  
  select * from `personals` where `personals`.`id` in ('personal_code_01')
  </code></pre>
  
  <p>in the laravel documents, the columns is like owner_type owner_id,
  here i want use the custom columns</p>
  
  <p>I don't know what to do. </p>