title: Automatic filing of fields during registration in Laravel
body: <p>Welcome.
  I have been learning Laravela for a few days and stopped at registration.
  I have migration:</p>
  
  <pre><code>Schema::create('users', function (Blueprint $table) {
          $table-&gt;bigIncrements('id');
          $table-&gt;string('name', 120);
          $table-&gt;string('surname', 120);
          $table-&gt;string('email', 120)-&gt;unique();
          $table-&gt;timestamp('email_verified_at')-&gt;nullable();
          $table-&gt;string('password');
          $table-&gt;bigInteger('counter')-&gt;default(0);
          $table-&gt;string('url_address', 160);
          $table-&gt;string('ip', 25);
          $table-&gt;dateTime('date_of_registration');
          $table-&gt;bigInteger('company_id')-&gt;unsigned();
          $table-&gt;boolean('isCompany')-&gt;default(0);
          $table-&gt;boolean('isMailing')-&gt;default(0);
          $table-&gt;text('note');
          $table-&gt;string('nip1', 12);
          $table-&gt;string('business1', 120);
          $table-&gt;string('phone1', 60);
          $table-&gt;string('street1', 150);
          $table-&gt;string('number1', 8);
          $table-&gt;string('postal_code1', 12);
          $table-&gt;string('city1', 100);
          $table-&gt;bigInteger('country_id1')-&gt;default(0);
          $table-&gt;bigInteger('provincial_id1')-&gt;default(0);
          $table-&gt;string('nip2', 12);
          $table-&gt;string('business2', 120);
          $table-&gt;string('phone2', 60);
          $table-&gt;string('street2', 150);
          $table-&gt;string('number2', 8);
          $table-&gt;string('postal_code2', 12);
          $table-&gt;string('city2', 100);
          $table-&gt;bigInteger('country_id2')-&gt;default(0);
          $table-&gt;bigInteger('provincial_id2')-&gt;default(0);
          $table-&gt;string('nip3', 12);
          $table-&gt;string('business3', 120);
          $table-&gt;string('phone3', 60);
          $table-&gt;string('street3', 150);
          $table-&gt;string('number3', 8);
          $table-&gt;string('postal_code3', 12);
          $table-&gt;string('city3', 100);
          $table-&gt;bigInteger('country_id3')-&gt;default(0);
          $table-&gt;bigInteger('provincial_id3')-&gt;default(0);
          $table-&gt;decimal('cash', 9, 2)-&gt;default(0);
          $table-&gt;rememberToken();
          $table-&gt;timestamps();
          $table-&gt;engine = "InnoDB";
      });
  </code></pre>
  
  <p>and functions:</p>
  
  <pre><code>function generateSeoUrl(string $string): string
  {
      $string = preg_replace("/ +/", "-", trim($string));
      $string = mb_strtolower(preg_replace('/[^A-Za-z0-9-]+/', '', $string), 'UTF-8');
      return $string;
  }
  </code></pre>
  
  <p>The above table uses Laravel's default authorization (I use Laravel 5.8).</p>
  
  <p>How can I add during registration:</p>
  
  <pre><code>- ip - IP address of the user who registered
  - date_of_registration - current date
  - url_address - here I would like to save the generatedSeoUrl result ($ email)
  </code></pre>
  
  <p>Please help. I've been sitting here for hours and I do not know how to deal with it :(</p>