Skip to content

Tags: illuminate/database

Tags

v13.6.0

Toggle v13.6.0's commit message
Use generic TModel in additional places in Factory class (#59780)

v13.5.0

Toggle v13.5.0's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Move Scope interface @template from method-level to class-level to fi…

…x LSP violation (#59675)

The previous method-level @template on apply() meant every implementation
had to accept any Model subtype (∀TModel), making it impossible for
user-defined scopes to narrow the model type without violating the
Liskov Substitution Principle. Moving the template to the interface level
allows implementations to bind a specific model via @implements Scope<T>.

v12.58.0

Toggle v12.58.0's commit message
[12.x] Use PDO subclass polyfill (#59640)

* DRAFT: Bump symfony/polyfill-php8.4 to latest version

* Simplify code by leveraging PDO subclass Symfony polyfill

See also symfony/polyfill#549

* Apply suggestion from @crynobone

* Apply suggestion from @crynobone

---------

Co-authored-by: Mior Muhammad Zaki <[email protected]>

v12.57.0

Toggle v12.57.0's commit message
[12.x] Use PDO subclass polyfill (#59640)

* DRAFT: Bump symfony/polyfill-php8.4 to latest version

* Simplify code by leveraging PDO subclass Symfony polyfill

See also symfony/polyfill#549

* Apply suggestion from @crynobone

* Apply suggestion from @crynobone

---------

Co-authored-by: Mior Muhammad Zaki <[email protected]>

v13.4.0

Toggle v13.4.0's commit message
[13.x] Fix CollectedBy attribute not resolving through abstract paren…

…t classes (#59488)

* 13.x-fix-collectby-for-abstract

* add regression test for no attr too

v13.3.0

Toggle v13.3.0's commit message
prefer `isset()` over `in_array()` for better performance (#59457)

the `class_uses_recursive()` method returns an array where both the key and value are the same fully qualified class name. by switching to `isset()` we get O(1) performance, while `in_array()` gives O(n) performance.

- also remove some single use temporary variables
- passes multiple arguments to `isset()` rather than multiple separate calls

v13.2.0

Toggle v13.2.0's commit message
13.x-scopedby-inheritence (#59332)

ensure it works with inheritence

v13.1.1

Toggle v13.1.1's commit message
Use Carbon::now() and Date::now() instead of now() helper (#59252)

Co-authored-by: Lucas Michot <[email protected]>

v13.1.0

Toggle v13.1.0's commit message
Use Carbon::now() and Date::now() instead of now() helper (#59252)

Co-authored-by: Lucas Michot <[email protected]>

v13.0.0

Toggle v13.0.0's commit message
fix conflicts