check in request has a specific key laravel controller code example Example: laravel if request has if ($request->has('name')) { // }