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([
            'birthdate' => $data['birthdate_month'] .' '. $data['birthdate_day'] .' '. $data['birthdate_year'],
            'user_fullname' => $data['firstname'].' '.$data['lastname'],
            'email' => $data['email'],
            'password' => bcrypt($data['password']),
            'avatar' => 'da.jpg',
        ]);
    }
protected function create ( array $ data ) { return User :: create ( [ 'birthdate' => $ data [ 'birthdate_month' ] . ' ' . $ data [ 'birthdate_day' ] . ' ' . $ data [ 'birthdate_year' ] , 'user_fullname' => $ data [ 'firstname' ] . ' ' . $ data [ 'lastname' ] , 'email' => $ data [ 'email' ] , 'password' => bcrypt ( $ data [ 'password' ] ) , 'avatar' => 'da.jpg' , ] ) ; }
Create a new user instance after a valid registration.
Create a new user instance after a valid registration .