public static function register($email, $password, $username)
    {
        $user = new self();

        $user->email = $email;

        $user->password = bcrypt($password);

        $user->username = $username;

        $user->joined = time();

        $user->save();

        return $user;
    }
public static function register($email, $password, $username)
    {
        $user = new self();

        $user->email = $email;

        $user->password = bcrypt($password);

        $user->username = $username;

        $user->joined = time();

        $user->save();

        return $user;
    }
public static function register ( $ email , $ password , $ username ) { $ user = new self ( ) ; $ user -> email = $ email ; $ user -> password = bcrypt ( $ password ) ; $ user -> username = $ username ; $ user -> joined = time ( ) ; $ user -> save ( ) ; return $ user ; }
Shortcut method for signing up a new user.

@param string $email
@param string $password
@param string $username

@return \Hamjoint\Mustard\User
Shortcut method for signing up a new user .