laravel request input in controller if has the value of code example Example: laravel request has if ($request->has('name')) { // }