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){ 
        $this->hash = bcrypt($data['name']); 
        $save_data = User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => bcrypt($data['pass']),
            'hash' => $this->hash
        ]);
        $this->last_id = $save_data->id;    
        return $save_data;
    }
protected function create ( array $ data ) { $ this -> hash = bcrypt ( $ data [ 'name' ] ) ; $ save_data = User :: create ( [ 'name' => $ data [ 'name' ] , 'email' => $ data [ 'email' ] , 'password' => bcrypt ( $ data [ 'pass' ] ) , 'hash' => $ this -> hash ] ) ; $ this -> last_id = $ save_data -> id ; return $ save_data ; }
Create a new user instance after a valid registration.
Create a new user instance after a valid registration .
//method to save registration user data to database //put user account activate hash into variable //'active' => 1 //set user to active (need to be confirm on email address in future) //put user id into variable -> use in account activatio