Skip to content

Commit ae1cc6f

Browse files
committed
feat: migrate to Laravel 11
1 parent d96d8c6 commit ae1cc6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1280
-3650
lines changed

app/Actions/Article/CreateArticleAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function execute(CreateArticleData $articleData): Article
1717
if ($articleData->published_at) {
1818
$articleData->published_at = new Carbon(
1919
time: $articleData->published_at,
20-
tz: config('app.timezone')
20+
timezone: config('app.timezone')
2121
);
2222
}
2323

app/Gamify/Points/AddPhone.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,16 @@
44

55
namespace App\Gamify\Points;
66

7-
use App\Models\User;
87
use QCod\Gamify\PointType;
98

109
final class AddPhone extends PointType
1110
{
1211
public int $points = 10;
1312

13+
protected string $payee = 'user';
14+
1415
public function __construct(mixed $subject)
1516
{
1617
$this->subject = $subject;
1718
}
18-
19-
public function payee(): User
20-
{
21-
// @phpstan-ignore-next-line
22-
return $this->getSubject()->user;
23-
}
2419
}

app/Gamify/Points/AddSocialLinks.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,16 @@
44

55
namespace App\Gamify\Points;
66

7-
use App\Models\User;
87
use QCod\Gamify\PointType;
98

109
final class AddSocialLinks extends PointType
1110
{
1211
public int $points = 15;
1312

13+
protected string $payee = 'user';
14+
1415
public function __construct(mixed $subject)
1516
{
1617
$this->subject = $subject;
1718
}
18-
19-
public function payee(): User
20-
{
21-
// @phpstan-ignore-next-line
22-
return $this->getSubject()->user;
23-
}
2419
}

app/Http/Kernel.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

app/Http/Middleware/Authenticate.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/Http/Middleware/EncryptCookies.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/Http/Middleware/HttpsProtocol.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/Http/Middleware/PreventRequestsDuringMaintenance.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/Http/Middleware/RedirectIfAuthenticated.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

app/Http/Middleware/TrimStrings.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)