title: Add to Laravel's built in Registration page Laravel 8
body: <p>I'd like to add a record to another table (location) when a user registers on my site.</p>
  <p>I've got it working with the google registration that happens through Socialite:</p>
  <pre><code>    // if user already found
              if( $user ) {
                  // update the avatar and provider that might have changed
                  $user-&gt;update([
                      'avatar' =&gt; $providerUser-&gt;avatar,
                      'provider' =&gt; $driver,
                      'provider_id' =&gt; $providerUser-&gt;id,
                      'access_token' =&gt; $providerUser-&gt;token
                  ]);
              } else {
                  // create a new user
                  $user = User::create([
                      'name' =&gt; $providerUser-&gt;getName(),
                      'email' =&gt; $providerUser-&gt;getEmail(),
                      'avatar' =&gt; $providerUser-&gt;getAvatar(),
                      'provider' =&gt; $driver,
                      'provider_id' =&gt; $providerUser-&gt;getId(),
                      'access_token' =&gt; $providerUser-&gt;token,
                      // user can use reset password to create a password
                      'password' =&gt; ''
                  ]);
              }
  ### this is the bit I added ###
              DB::table('locations')-&gt;insert([
                  'name'=&gt;'Practice location',
                  'created_at'=&gt; date('Y-m-d H:j:s'),
                  'updated_at'=&gt; date('Y-m-d H:j:s'),
                  'user'=&gt; $user-&gt;id,
                  'url'=&gt; 'https://sites-jk.s3.eu-west-2.amazonaws.com/seeder/dartboard.png',
              ]);
  </code></pre>
  <p>The last block of code adds a record related to the new user in the locations table.  I'm pleased I managed that.  This is in UserController in app\Http\Controllers\Admin, a file I created following a tutorial.</p>
  <p><strong>What I'd like to achieve</strong> is the same as above but triggered when the user uses Laravel's built in registration system.  I don't know where to find this file, I'd like to add that last block of code from above to it so when they sign up to my website it automatically adds a record in the location table related to the new user.</p>
  <p>hopefully that makes sense.</p>
  <p>I've looked through <a href="https://stackoverflow.com/questions/47376738/how-i-can-modify-the-built-in-registration-form-of-laravel-5-5">this post</a> and <a href="https://stackoverflow.com/questions/63430855/laravel-registration-page-eero">this post</a> but couldn't see anything useful for me / that I could understand.</p>