Menentukan apakah input ada di Laravel

if ($request->has('name')) {
    //
}

// When given an array, the has method will determine if all of the specified values are present:

if ($request->has(['name', 'email'])) {
    //
}
Anak Daeng