title: Laravel Eloquent: Multiple Foreign Keys from One Primary Key
body: <p>I am in-progress to create a project in Laravel.
  I have two Database Table, which is created by migrations:
  I want to setup multiple foreign key in database schema.</p>
  
  <ol>
  <li>Table User</li>
  </ol>
  
  <pre><code>Schema::create('tr_users', function (Blueprint $table) {
              $table-&gt;bigIncrements('id');
              $table-&gt;string('name');
              $table-&gt;string('email');
              $table-&gt;timestamp('email_verified_at')-&gt;nullable();
              $table-&gt;rememberToken();
              $table-&gt;string('password');
  
              $table-&gt;unsignedBigInteger('departement_id')-&gt;nullable();
              $table-&gt;foreign('departement_id')
                  -&gt;references('id_departement')-&gt;on('tr_departements')
                  -&gt;onUpdate('cascade')
                  -&gt;onDelete('cascade');
          });
  </code></pre>
  
  <ol start="2">
  <li>Table Departrements</li>
  </ol>
  
  <pre><code>Schema::create('tr_departements', function (Blueprint $table) {
              $table-&gt;bigIncrements('id_departement');
              $table-&gt;string('name');
              $table-&gt;timestamps();
  
              $table-&gt;unsignedBigInteger('created_by')-&gt;nullable();
              $table-&gt;foreign('created_by')
                  -&gt;references('id')-&gt;on('tr_users')
                  -&gt;onDelete('cascade');
              $table-&gt;unsignedBigInteger('updated_by')-&gt;nullable();
              $table-&gt;foreign('updated_by')
                  -&gt;references('id')-&gt;on('tr_users')
                  -&gt;onDelete('cascade');
          });
  </code></pre>
  
  <p>What I want to know is how to describe relation in Models?</p>
  
  <p><em>Edit:</em><br>
  My plan to use this relation is every users is belongs to departement, and any departement has many users, and every users has only one departement</p>