laravel if request has errors code example Example: laravel if request has if ($request->has('name')) { // }