public function getByUnexpiredToken($token)
    {
        return $this->where('token', '=', $token)
                    ->where('expire_at', '>', Carbon::now()->format('Y-m-d H:i:s'))
                    ->first();
    }
public function getByUnexpiredToken($token)
    {
        return $this->where('token', '=', $token)
                    ->where('expire_at', '>', Carbon::now()->format('Y-m-d H:i:s'))
                    ->first();
    }
public function getByUnexpiredToken ( $ token ) { return $ this -> where ( 'token' , '=' , $ token ) -> where ( 'expire_at' , '>' , Carbon :: now ( ) -> format ( 'Y-m-d H:i:s' ) ) -> first ( ) ; }
Retrieve by unexpired token.

@author Paulius Navickas <pana@nodes.dk>

@param  string $token
@return \Nodes\Api\Auth\ResetPassword\ResetPasswordModel
Retrieve by unexpired token .