Skip to content

Commit

Permalink
fix(laravel): fix use laravel fillable for writable props
Browse files Browse the repository at this point in the history
Closes: #6875
Signed-off-by: Tobias Oitzinger <[email protected]>
  • Loading branch information
toitzi committed Jan 8, 2025
1 parent c0c3f4c commit d9a72af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function create(string $resourceClass, string $property, array $options =

return $propertyMetadata
->withBuiltinTypes([$type])
->withWritable($propertyMetadata->isWritable() ?? true)
->withWritable($propertyMetadata->isWritable() ?? true === $p['fillable'])
->withReadable($propertyMetadata->isReadable() ?? false === $p['hidden']);
}

Expand Down

0 comments on commit d9a72af

Please sign in to comment.