file uploads
This commit is contained in:
@@ -12,6 +12,16 @@ class SchemaService
|
||||
|
||||
public function fromArray(array $schemaArr): Schema
|
||||
{
|
||||
$schemaArr["fields"] = [
|
||||
[
|
||||
"ui" => "text",
|
||||
"name" => "name",
|
||||
"label" => "Name",
|
||||
"required" => true,
|
||||
],
|
||||
...$schemaArr["fields"],
|
||||
];
|
||||
|
||||
return new Schema(
|
||||
name: $schemaArr["name"],
|
||||
label: $schemaArr["label"],
|
||||
|
||||
Reference in New Issue
Block a user