title: Laravel 6 - Illuminate\Database\Eloquent\RelationNotFoundException Call to undefined relationship
body: <p>I want to send <code>nama</code> column from <code>Supplier</code> table to <code>Transaction_in</code> table, but iget this error.</p>
  
  <blockquote>
    <p>Illuminate\Database\Eloquent\RelationNotFoundException Call to
    undefined relationship [get_transactions_in] on model
    [App\Transaction_in].</p>
  </blockquote>
  
  <p><strong>Transaction_in Model</strong></p>
  
  <pre><code>class Transaction_in extends Model
  {
      protected $guarded = [];
  
      public function get_suppliers(){
          return $this-&gt;belongsTo(Supplier::class, 'Supplier_id');
      }
  }
  </code></pre>
  
  <p><strong>Supplier Model</strong></p>
  
  <pre><code>class Supplier extends Model
  {
      protected $guarded = [];
  
      public function get_transactions_in(){
          return $this-&gt;hasMany(Transaction_in::class);
      }
  }
  </code></pre>
  
  <p><strong>Transaction_in Controller</strong></p>
  
  <pre><code>public function index()
      {
          $transaction_ins = Transaction_in::with('get_transactions_in')-&gt;get();
          return view('transactionsIN.index', compact('transaction_ins', $transaction_ins, 'supplierList'));
      }
  </code></pre>
  
  <p>The foreign key is <code>Supplier_id</code> based on <code>id</code> from <code>Supplier</code> table.</p>