All notable changes to LaravelModels
will be documented in this file.
- Support for UP TO Laravel 10.x
egeatech/laravel-requests
to 3.x
SupportsQueryBuilderInterface
required the implementation of the method removed inv3.0.1
- Removing method from
BaseRepository
as it was dropped from Spatie's library
- Support for PHP 7.4
- Laravel Requests version to 2.x
- Laravel Query Builder version to 5.x
- Support for Laravel 9
- Composer dependencies
- PHP version specified in
composer.json
file
- Model identifier custom key definition is used on value retrieval and data persistence to update another field of a model
- Ability to compare define a custom key to handle model identifier automatic casting
- Ability to compare model identifiers with values possibly
null
- Ability to automatically cast FK attributes of Model classes to ModelIdentifier instances
BaseRepository::getRecordsViaModelQuery
methodItemsPerPageResolver::getPageSize
when forcing user-defined page size
BaseRepository::__construct
, better DI handling
BaseRepository::findManyByIds
method, which wrongly thrown an exception- Pagination parameters for
BaseRepository::index
method, which were not considered when querying a Model
BaseRepository::all
is nowBaseRepository::allWhere
BaseRepository::findMany
is nowBaseRepository::findManyByIds
- Page dimension resolver when performing paginated API calls
- Methods in
BaseRepository
shared the same model instance when executing queries (for example, invoking multiplestore
calls caused data overwriting)
findRecordViaAdvancedQueryBuilder
return value inBaseRepository
class
Queryable
trait
SupportsQueryBuilderInterface
namespace- Import in
BaseRepository
forCollection
class
- Model repositories, identifiers and general scaffolding