Often in your Laravel code you would want to validate if the request has a particular input parameter and also if the parameter has a value in it.
Laravel has provided a simple single method on the request object to check both of things
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
Comments