title: I am having issue with duplicating laravel user registration form
body: <p>I want to make another registration form for creating admin user, this form will be different from the normal registration which will assign the user as admin.
  I am duplicating the the registration form. Everything goes fine till I enter values in registration form and hit register button. This gives me error:
  &quot;Route [admin] not defined. (View: C:\xampp\htdocs\courseRecomendation\resources\views\admin\register.blade.php)&quot;</p>
  <p>Register blade file</p>
  <pre><code>   &lt;div class=&quot;card-body&quot;&gt;
       &lt;form method=&quot;POST&quot; action=&quot;{{ route('admin') }}&quot;&gt;
        @csrf
        
         .................
         .................
                      
         &lt;div class=&quot;form-group row mb-0&quot;&gt;
           &lt;div class=&quot;col-md-6 offset-md-4&quot;&gt;
             &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;
               {{ __('Register') }}
             &lt;/button&gt;
           &lt;/div&gt;
         &lt;/div&gt;
       &lt;/form&gt;
     &lt;/div&gt;
  </code></pre>
  <p>AdminRegisterController</p>
  <pre><code>&lt;?php
  namespace App\Http\Controllers\Admin;
  // namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use App\Providers\RouteServiceProvider;
  use App\User;
  use Illuminate\Foundation\Auth\AdminRegister;
  use Illuminate\Support\Facades\Hash;
  use Illuminate\Support\Facades\Validator;
  
  class AdminRegisterController extends Controller
  {
      use AdminRegister;
  
      protected $redirectTo = '/';
  
      public function __construct()
      {
          $this-&gt;middleware('guest');
      }
  
      protected function validator(array $data)
      {
          return Validator::make($data, [
              'name' =&gt; ['required', 'string', 'max:255'],
              'email' =&gt; ['required', 'string', 'email', 'max:255', 'unique:users'],
              'password' =&gt; ['required', 'string', 'min:8', 'confirmed'],
          ]);
      }
  
      protected function create(array $data)
      {
          $user = User::create([
              'name' =&gt; $data['name'],
              'email' =&gt; $data['email'],
              'password' =&gt; Hash::make($data['password']),
          ]);
  
          if ($data['role'] === null) {
              $user-&gt;assignRole('admin');
          }
  
          return $user;
      }
  
  }
  </code></pre>
  <p>Routs</p>
  <pre><code>Route::get('/admin/register', 'Admin\AdminRegisterController@showRegistrationForm');
  Route::post('/admin', 'Admin\AdminRegisterController@admin');
  </code></pre>