Laravel: Get the ID of User::create and insert new row using that ID
<p>I have <code>AuthController</code> in Laravel and I have 2 tables, one is <code>Users</code> and one is <code>Users_Information</code> and I want to insert into <code>Users_Information</code> upon registration.</p>

<p>So I want to get the id from the following method and insert a new row and set the column ID of that row to the ID of the user I have just created.</p>

<pre><code>     /**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return User
     */
    protected function create(array $data)
    {
        return User::create([
            'username' =&gt; $data['username'] . ' ' . $data['username2'],
            'mail' =&gt; $data['mail'],
            'password' =&gt; bcrypt($data['password']),
        ]);
    }
</code></pre>

<p>I want to insert into <code>Users_Information</code> with a column <code>id</code>, <code>current_food</code> and <code>current_level</code></p>

<p>I have a controller for the <code>Users_Information</code> called <code>UserInformation</code>, would I just call <code>UserInformation::create</code> but how would I get the id from the <code>User::create</code>?</p>