Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
In this article, I will give you information about How to check request method is GET or POST in Laravel ?
Here we will give you detail about How to check request method in Laravel?
so you can check using request method so let’s see an example :
$method = $request->method();
if ($request->isMethod('post')) {
dd('Post Request');
}
if ($request->isMethod('get')) {
dd('Get Request');
}