title: how can i submit the employee table id (auto increment) to the user table under the employee_id on form submit
body: <pre><code>public function store(Request $request)
  {
  
       Employees::create([
  
          'first_name'=&gt;$request['first_name'],
          'last_name'=&gt;$request['last_name'],
          'email'=&gt;$request['email'],
          'contact_no'=&gt;$request['contact_no'],
          'join_date'=&gt;$request['join_date'],
          'date'=&gt;$request['date'],
          'employee_no'=&gt;$request['employee_no'],
          'no'=&gt;$request['no'],
          'profile'=&gt;$request['profile'],
          'dob'=&gt;$request['dob'],
          'leave_eligible_date'=&gt;$request['leave_eligible_date'],
          'leave_eligible_date'=&gt;$request['leave_eligible_date'],
          'employee_type_id'=&gt;$request['employee_type_id'],
          'employee_designation_id'=&gt;$request['employee_designation_id'],
          'employee_department_id'=&gt;$request['employee_department_id'],
          'organization_hierarchy'=&gt;$request['organization_hierarchy'],
          'direct_contact_person_id'=&gt;$request['direct_contact_person_id'],
          'status'=&gt;$request['status']
      ]);
  </code></pre>
  
  <p>i want to send the Employee table id to the user table under the employee_id column on form submit </p>
  
  <pre><code>      User::create([
          'name'=&gt;$request['first_name'],
          'email'=&gt;$request['email'],
          'photo'=&gt;$request['profile'],   
          'employee_id'=&gt;$request['????'], // i want send this line
          'password'=&gt;Hash::make($request['password'])
       ]);
  }
  </code></pre>
  
  <p>The above code will insert the data into two tables but i want the employee table id which is auto increment to be inserted into the user table under the employee_id column on form submit.</p>