diff --git a/src/Http/Request.php b/src/Http/Request.php index 0690e97..86b807b 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -240,6 +240,24 @@ public function fullUrl(): string return '//' . $this->host() . $this->uri(); } + /** + * isGet + * @return bool + */ + public function isGet(): bool + { + return $this->method() == 'GET'; + } + + /** + * isPost + * @return bool + */ + public function isPost(): bool + { + return $this->method() == 'POST'; + } + /** * IsAjax * @return bool