public function register($input)
    {
        $account = $this->model()->fill($input);

        $account->password_confirmation = array_get($input, 'password_confirmation');

        // Generate a random confirmation code
        $account->confirmation_code = md5(uniqid(mt_rand(), true));

        // Save if valid. Password field will be hashed before save
        return $this->save($account);
    }
public function register($input)
    {
        $account = $this->model()->fill($input);

        $account->password_confirmation = array_get($input, 'password_confirmation');

        // Generate a random confirmation code
        $account->confirmation_code = md5(uniqid(mt_rand(), true));

        // Save if valid. Password field will be hashed before save
        return $this->save($account);
    }
public function register ( $ input ) { $ account = $ this -> model ( ) -> fill ( $ input ) ; $ account -> password_confirmation = array_get ( $ input , 'password_confirmation' ) ; // Generate a random confirmation code $ account -> confirmation_code = md5 ( uniqid ( mt_rand ( ) , true ) ) ; // Save if valid. Password field will be hashed before save return $ this -> save ( $ account ) ; }
Signup a new account with the given parameters

todo interface for identity
@param  array $input Array containing 'username', 'email' and 'password'.

@return  Entity User object that may or may not be saved successfully. Check the id to make sure.
Signup a new account with the given parameters