title: Laravel 5.4 current id insert eloquent
body: <p>When register at Laravel using eloquent, my PK field at table users is userid [auto increment] I want to insert the current id at the same time when I run the <code>User::create();</code> to different field (<code>create_by</code> [int]) so the create_by field will be filled with the same value as the primary key field userid, like this code:</p>
  
  <pre><code>User::Create([
      'user_email' =&gt; $data['user_email'],
      'user_password' =&gt; bcrypt($data['user_password']),
      'first_name' =&gt; 'John',
      'last_name' =&gt; 'Doe',
      'department_id' =&gt; 1,
      'user_level' =&gt; 1,
      'create_date' =&gt; Carbon::now('Asia/Jakarta'),
      'create_by' =&gt; // value same as userid the PK
  ])
  </code></pre>
  
  <p>How to get the current id to be used in different field?</p>
  
  <p>I actually try some trick to get the id like this:</p>
  
  <pre><code>User::insertGetId([
      'user_email' =&gt; $data['user_email'],
      'user_password' =&gt; bcrypt($data['user_password']),
      'first_name' =&gt; 'John',
      'last_name' =&gt; 'Doe',
      'department_id' =&gt; 1,
      'user_level' =&gt; 1,
      'create_date' =&gt; Carbon::now('Asia/Jakarta')
  ])
  </code></pre>
  
  <p>It was good to return the inserted id, but my expectation is I want to save the current id to the <code>create_by</code> field at the same time <code>user_id</code> was inserted, not after the data was saved.</p>