Skip to content

Commit 4eb4a71

Browse files
Added Laravel 11 support
1 parent 71b60b5 commit 4eb4a71

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Diff for: composer.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@
3939
],
4040
"require": {
4141
"php": "^7.2 || ^8.0",
42-
"illuminate/container": ">=6.0 <11.0",
43-
"illuminate/database": ">=6.0 <11.0",
44-
"illuminate/http": ">=6.0 <11.0",
45-
"illuminate/support": ">=6.0 <11.0",
42+
"illuminate/container": ">=6.0 <12.0",
43+
"illuminate/database": ">=6.0 <12.0",
44+
"illuminate/http": ">=6.0 <12.0",
45+
"illuminate/support": ">=6.0 <12.0",
4646
"ramsey/uuid": "^3.7 || ^4.0",
47-
"symfony/var-dumper": "^4.0 || ^5.0 || ^6.0"
47+
"symfony/var-dumper": "^4.0 || ^5.0 || ^6.0 || ^7.0"
4848
},
4949
"require-dev": {
50-
"laravel/framework": ">=6.0 <11.0",
51-
"laravel/lumen-framework": ">=6.0 <11.0"
50+
"laravel/framework": ">=6.0 <12.0"
5251
},
5352
"conflict": {
5453
"andrey-helldar/laravel-support": "*"

Diff for: src/Eloquent/Concerns/HasCustomRelationships.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function hasManyCustom(string $related, ?string $foreign_key = null, ?
2424
return $this->newHasManyCustom(
2525
$instance->newQuery(),
2626
$model,
27-
"{$foreign_table}.{$foreign_key}",
27+
"$foreign_table.$foreign_key",
2828
$local_key
2929
);
3030
}

Diff for: src/Support/AppVersion.php

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public function is10x(): bool
3535
return $this->major() === 10;
3636
}
3737

38+
public function is11x(): bool
39+
{
40+
return $this->major() === 11;
41+
}
42+
3843
public function major(): int
3944
{
4045
return (int) Str::before($this->version(), '.');

0 commit comments

Comments
 (0)