app/Http/Controllers/Auth/AuthController.php
/**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return User
     */
Create a new user instance after a valid registration.
@param  array  $data
@return User
Create a new user instance after a valid registration . @param array $data @return User
protected function create(array $data)
    {
      return User::create([
          'last_name'       => $data['last_name'],
          'first_name'      => $data['first_name'],
          'username'        => $data['username'],
          'email'           => $data['email'],
          'password'        => bcrypt($data['password']),
          'selfRegistered'  => $data['selfRegistered'],
      ]);
    }
protected function create ( array $ data ) { return User :: create ( [ 'last_name' => $ data [ 'last_name' ] , 'first_name' => $ data [ 'first_name' ] , 'username' => $ data [ 'username' ] , 'email' => $ data [ 'email' ] , 'password' => bcrypt ( $ data [ 'password' ] ) , 'selfRegistered' => $ data [ 'selfRegistered' ] , ] ) ; }
Create a new user instance after a valid registration.
Create a new user instance after a valid registration .
// $finitial = substr($data['first_name'],0,1); // $username = strtolower($data['last_name'] . $finitial); //'username'        => $username,