if ($request->filled('name')) {
//
}
If you would like to determine if a value is present on the request and is not empty, you may use the filled method
if ($request->filled('name')) {
//
}
If you would like to determine if a value is present on the request and is not empty, you may use the filled method
Written by Tushar