app/Http/Controllers/Auth/RegisterController.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([
            'username' => $data['username'],
            'firstName' => $data['firstName'],
            'lastName' => $data['lastName'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
            'showMail' => "1",
            'dataPrivacy' => array_key_exists('dataPrivacy', $data),
            'tos' => array_key_exists('tos', $data)
        ]);
    }
protected function create ( array $ data ) { return User :: create ( [ 'username' => $ data [ 'username' ] , 'firstName' => $ data [ 'firstName' ] , 'lastName' => $ data [ 'lastName' ] , 'email' => $ data [ 'email' ] , 'password' => Hash :: make ( $ data [ 'password' ] ) , 'showMail' => " 1 " , 'dataPrivacy' => array_key_exists ( 'dataPrivacy' , $ data ) , 'tos' => array_key_exists ( 'tos' , $ data ) ] ) ; }
Create a new user instance after a valid registration.
Create a new user instance after a valid registration .