title: Adding a populated select dropdown in Laravel Jetstream Registration
body: <p>I am new to Laravel and I am trying to use Jetstream(Livewire) for authentication. I already succeeded in creating a registration form. However, I wish to change an input field to a select dropdown field based on the data from database. This is the same question in <a href="https://stackoverflow.com/questions/66503224/how-to-add-a-new-input-as-a-dropdown-type-and-with-filled-default-options-to-lar">SO</a> but the answer given was a manual one. I was thinking maybe this <a href="https://stackoverflow.com/a/66424637/7434025">one</a> but it may conflict with the already used return statement(Correct me if I am wrong).</p>
  <p>Currently my Fortify/CreateNewUser function:</p>
  <pre><code>public function create(array $input)
  {
      Validator::make($input, [
          'name' =&gt; ['required', 'string', 'max:255'],
          'user_name' =&gt; ['required', 'string', 'max:125'],
          'email' =&gt; ['required', 'string', 'email', 'max:255', 'unique:users'],
          'password' =&gt; $this-&gt;passwordRules(),
          'user_role' =&gt; ['required', 'max:20'],
          'user_type' =&gt; ['required', 'max:20'],
          'terms' =&gt; Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['required', 'accepted'] : '',
      ])-&gt;validate();
  
      return User::create([
          'name' =&gt; $input['name'],
          'user_name' =&gt; $input['user_name'],
          'email' =&gt; $input['email'],
          'password' =&gt; Hash::make($input['password']),
          'user_role' =&gt; $input['user_role'],
          'user_type' =&gt; $input['user_type'],
      ]);
  }
  </code></pre>
  <p>Register.blade.php:</p>
  <pre><code>...
          &lt;div class=&quot;mt-4&quot;&gt;
              &lt;x-jet-label for=&quot;user_role&quot; value=&quot;{{ __('Role') }}&quot; /&gt;
              &lt;x-jet-input id=&quot;user_role&quot; class=&quot;block mt-1 w-full&quot; type=&quot;text&quot; name=&quot;user_role&quot; required autocomplete=&quot;user_role&quot; /&gt;
          &lt;/div&gt;
  
          &lt;div class=&quot;mt-4&quot;&gt;
              &lt;x-jet-label for=&quot;user_type&quot; value=&quot;{{ __('Type') }}&quot; /&gt;
              &lt;x-jet-input id=&quot;user_type&quot; class=&quot;block mt-1 w-full&quot; type=&quot;text&quot; name=&quot;user_type&quot; required autocomplete=&quot;user_type&quot; /&gt;
          &lt;/div&gt;
  ...
  </code></pre>