title: How to create a user while logged in Laravel 5.4?
body: <p>I want to create another account while logged in to an account. I didn't edit anything because I have no clue on what to edit. </p>
  
  <p>Please Help. Thank you.</p>
  
  <p>Here's my RegisterController.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  
  use App\User;
  use App\Http\Controllers\Controller;
  use Illuminate\Support\Facades\Validator;
  use Illuminate\Foundation\Auth\RegistersUsers;
  
  class RegisterController extends Controller
  {
  /*
  |--------------------------------------------------------------------------
  | Register Controller
  |--------------------------------------------------------------------------
  |
  | This controller handles the registration of new users as well as their
  | validation and creation. By default this controller uses a trait to
  | provide this functionality without requiring any additional code.
  |
  */
  
  use RegistersUsers;
  
  /**
   * Where to redirect users after registration.
   *
   * @var string
   */
  protected $redirectTo = '/dashboard';
  
  /**
   * Create a new controller instance.
   *
   * @return void
   */
  public function __construct()
  {
      $this-&gt;middleware('guest');
  }
  
  /**
   * Get a validator for an incoming registration request.
   *
   * @param  array  $data
   * @return \Illuminate\Contracts\Validation\Validator
   */
  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:6|confirmed',
      ]);
  }
  
  /**
   * Create a new user instance after a valid registration.
   *
   * @param  array  $data
   * @return User
   */
  protected function create(array $data)
  {
      return User::create([
          'name' =&gt; $data['name'],
          'email' =&gt; $data['email'],
          'password' =&gt; bcrypt($data['password']),
      ]);
  }
  }
  </code></pre>
  
  <p>and this is the auth route in router.php</p>
  
  <pre><code>public function auth()
  {
      // Authentication Routes...
      $this-&gt;get('login', 'Auth\LoginController@showLoginForm')-&gt;name('login');
      $this-&gt;post('login', 'Auth\LoginController@login');
      $this-&gt;post('logout', 'Auth\LoginController@logout')-&gt;name('logout');
  
      // Registration Routes...
      $this-&gt;get('register', 'Auth\RegisterController@showRegistrationForm')-&gt;name('register');
      $this-&gt;post('register', 'Auth\RegisterController@register');
  
      // Password Reset Routes...
      $this-&gt;get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')-&gt;name('password.request');
      $this-&gt;post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')-&gt;name('password.email');
      $this-&gt;get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')-&gt;name('password.reset');
      $this-&gt;post('password/reset', 'Auth\ResetPasswordController@reset');
  }
  </code></pre>