check request has or not in laravel code example Example: laravel request has if ($request->has('name')) { // }