v1.0.0-beta.4
Pre-release
Pre-release
Added
- Add support for generating OpenAPI Definitions
- Add
CollectionAction
andResourceAction
endpoints - Allow including relationships by default (#96 by @SychO9)
- Add support for conditional linkage (#110 by @SychO9)
- Add
Enum
support toStr
type - Add the ability to make a field
sparse
by default - Add the ability to add
after
callbacks to theCreate
endpoint - Add the ability to pass a condition to
writableOnCreate
- Add
Relationship::notIncludable()
- Allow
psr/http-message
v2 - Laravel: Add
ToOne
andToMany
subclasses which support constraining relationship queries (#103 by @SychO9) - Laravel: Support array of abilities in
can
helper
Changed
- Laravel:
EloquentCollection
queries now keep the resource'sEloquent\Builder
instead of converting to the baseQuery\Builder
- Laravel: Apply
EloquentResource
scope when applyingWhereHas
filter
Fixed
- Fix error when request body
data.attributes
is null (#98 by @SychO9) - Fix support for nested includes on polymorphic relationships
- Fix
multipleOf
bugs (#114 by @bertramakers) - Fix error when using
Context::withRequest
(#107 by @SychO9) - The
self
link for a resource now only appears if theShow
endpoint is present in a collection - Laravel: Support dynamically resolved relationships (#100 by @SychO9)
- Laravel: Fix serialization for
MorphTo
relationships (#97 by @SychO9) - Laravel: Only attempt to preload related
EloquentResource
s - Laravel: Fix error parameter name in
WhereBelongsTo
filter - Laravel: Fix limiting
ToMany
relation results (#112 by @SychO9)