get current http request laravel code example
Example 1: public function store(Request $request)
input('name');
//
}
}
Example 2: check method in laravel
if ($request->isMethod('post')) {
return ['user' => $user];
}
input('name');
//
}
}
if ($request->isMethod('post')) {
return ['user' => $user];
}