Skip to content

Commit 0184a5a

Browse files
committed
Allow Laravel 10
1 parent 75a9bdb commit 0184a5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Register Eloquent model event listeners just-in-time directly from the model.
99

10-
Using [Observers](https://laravel.com/docs/9.x/eloquent#observers) can introduce a (significant) overhead on the application since they are usually registered in a service
10+
Using [Observers](https://laravel.com/docs/10.x/eloquent#observers) can introduce a (significant) overhead on the application since they are usually registered in a service
1111
provider which results in every model in your application with a observer is "booted" a startup of the application even though the model is never touched in the request. This
1212
package aims to reduce that overhead by connecting listeners just-in-time whenever the Eloquent model is booted (first used) in the request. The event callbacks are also
1313
defined on the model itself keeping the code cleaner, althought this is my preference of course and if you disagree this might not be the package for you.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^8.0.2",
20-
"laravel/framework": "^9.0"
20+
"laravel/framework": "^9||^10"
2121
},
2222
"autoload": {
2323
"psr-4": {
@@ -27,7 +27,7 @@
2727
"require-dev": {
2828
"phpunit/phpunit": "^9.3",
2929
"orchestra/testbench": "^7.0",
30-
"friendsofphp/php-cs-fixer": "3.6.*"
30+
"friendsofphp/php-cs-fixer": "^3.14"
3131
},
3232
"autoload-dev": {
3333
"psr-4": {

0 commit comments

Comments
 (0)