We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc21dba commit 1fa1cabCopy full SHA for 1fa1cab
src/App/Models/Value.php
@@ -101,7 +101,7 @@ public static function validateCreate(Request $request): void
101
102
self::filterByAllowedColumn($valueColumn, $request);
103
104
- throw_if(!$request->has($valueColumn) || empty($request->get($valueColumn)),
+ throw_if(!$request->has($valueColumn) || is_null($request->get($valueColumn)),
105
new Exception("Attribute '$valueColumn' needs to be provided."));
106
107
$customField->validate($request->get($valueColumn));
0 commit comments