Skip to content

Commit 5faf622

Browse files
authored
Merge pull request #27 from alkrauss48/upgrade-dependencies
Upgrade dependencies
2 parents 3fa0d4b + fe7ed82 commit 5faf622

File tree

29 files changed

+4292
-3688
lines changed

29 files changed

+4292
-3688
lines changed

app/Enums/Traits/EnumToArray.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public static function values(): array
3434
/**
3535
* The array of values for the enum.
3636
*
37-
* @return array<mixed, string>
37+
* @return array<int|string, string>
3838
*/
3939
public static function array(): array
4040
{
4141
return collect(self::cases())
42-
->reduce(function ($carry, $row) {
43-
$carry[$row->value] = $row->label();
42+
->reduce(function ($carry, $row): array {
43+
$carry[$row->value] = strval($row->label());
4444

4545
return $carry;
4646
}, []);

app/Http/Middleware/HandleInertiaRequests.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Http\Request;
66
use Inertia\Middleware;
7-
use Tightenco\Ziggy\Ziggy;
7+
use Tighten\Ziggy\Ziggy;
88

99
class HandleInertiaRequests extends Middleware
1010
{

app/Jobs/GenerateThumbnail.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ class GenerateThumbnail implements ShouldQueue
2323
public function __construct(
2424
public Presentation $presentation,
2525
public User $user,
26-
) {
27-
}
26+
) {}
2827

2928
/**
3029
* Execute the job.

app/Models/AggregateView.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Models;
44

55
use App\Enums\PresentationFilter;
6+
use Database\Factories\AggregateViewFactory;
67
use Illuminate\Database\Eloquent\Builder;
78
use Illuminate\Database\Eloquent\Casts\Attribute;
89
use Illuminate\Database\Eloquent\Factories\HasFactory;
@@ -11,6 +12,7 @@
1112

1213
class AggregateView extends Model
1314
{
15+
/** @use HasFactory<AggregateViewFactory> */
1416
use HasFactory;
1517

1618
const UPDATED_AT = null;

app/Models/DailyView.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
namespace App\Models;
44

55
use App\Enums\PresentationFilter;
6+
use Database\Factories\DailyViewFactory;
67
use Illuminate\Database\Eloquent\Builder;
78
use Illuminate\Database\Eloquent\Factories\HasFactory;
89
use Illuminate\Database\Eloquent\Model;
910
use Illuminate\Database\Eloquent\Relations\BelongsTo;
1011

1112
class DailyView extends Model
1213
{
14+
/** @use HasFactory<DailyViewFactory> */
1315
use HasFactory;
1416

1517
const UPDATED_AT = null;

app/Models/ImageUpload.php

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Models;
44

5+
use Database\Factories\ImageUploadFactory;
56
use Illuminate\Database\Eloquent\Casts\Attribute;
67
use Illuminate\Database\Eloquent\Factories\HasFactory;
78
use Illuminate\Database\Eloquent\Model;
@@ -11,7 +12,9 @@
1112

1213
class ImageUpload extends Model implements HasMedia
1314
{
15+
/** @use HasFactory<ImageUploadFactory> */
1416
use HasFactory;
17+
1518
use InteractsWithMedia;
1619

1720
/**

app/Models/Presentation.php

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Models;
44

5+
use Database\Factories\PresentationFactory;
56
use Illuminate\Database\Eloquent\Builder;
67
use Illuminate\Database\Eloquent\Casts\Attribute;
78
use Illuminate\Database\Eloquent\Factories\HasFactory;
@@ -16,7 +17,9 @@
1617

1718
class Presentation extends Model implements HasMedia
1819
{
20+
/** @use HasFactory<PresentationFactory> */
1921
use HasFactory;
22+
2023
use HasSlug;
2124
use InteractsWithMedia;
2225
use SoftDeletes;

app/Models/User.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Models;
44

5+
use Database\Factories\UserFactory;
56
use Filament\Models\Contracts\FilamentUser;
67
use Filament\Panel;
78
use Illuminate\Auth\MustVerifyEmail;
@@ -18,8 +19,13 @@
1819

1920
class User extends Authenticatable implements FilamentUser, VerifyEmailContract
2021
{
21-
use HasApiTokens, HasFactory, Notifiable;
22+
use HasApiTokens;
23+
24+
/** @use HasFactory<UserFactory> */
25+
use HasFactory;
26+
2227
use MustVerifyEmail;
28+
use Notifiable;
2329
use SoftDeletes;
2430
use TwoFactorAuthenticatable;
2531

composer.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^8.1",
12-
"filament/filament": "^3.2",
13-
"filament/spatie-laravel-media-library-plugin": "^3.2",
14-
"flowframe/laravel-trend": "^0.2.0",
15-
"guzzlehttp/guzzle": "^7.2",
16-
"inertiajs/inertia-laravel": "^0.6.8",
17-
"jeffgreco13/filament-breezy": "^2.2",
18-
"laravel/framework": "^10.10",
19-
"laravel/sanctum": "^3.2",
20-
"laravel/tinker": "^2.8",
11+
"php": "^8.2",
12+
"filament/filament": "^3.0",
13+
"filament/spatie-laravel-media-library-plugin": "^3.0",
14+
"flowframe/laravel-trend": "^0",
15+
"guzzlehttp/guzzle": "^7.0",
16+
"inertiajs/inertia-laravel": "^1.0",
17+
"jeffgreco13/filament-breezy": "^2.0",
18+
"laravel/framework": "^11.0",
19+
"laravel/sanctum": "^4.0",
20+
"laravel/tinker": "^2.9",
2121
"league/flysystem-aws-s3-v3": "^3.0",
2222
"spatie/browsershot": "^4.0",
23-
"spatie/laravel-medialibrary": "^11.4",
24-
"spatie/laravel-sluggable": "^3.5",
25-
"tightenco/ziggy": "^1.0",
23+
"spatie/laravel-medialibrary": "^11.0",
24+
"spatie/laravel-sluggable": "^3.0",
25+
"tightenco/ziggy": "^2.0",
2626
"webbingbrasil/filament-copyactions": "^3.0"
2727
},
2828
"require-dev": {
29-
"fakerphp/faker": "^1.9.1",
29+
"fakerphp/faker": "^1.0",
3030
"larastan/larastan": "^2.0",
31-
"laravel/breeze": "^1.25",
31+
"laravel/breeze": "^2.0",
3232
"laravel/pint": "^1.0",
33-
"laravel/sail": "^1.29",
34-
"mockery/mockery": "^1.4.4",
35-
"nunomaduro/collision": "^7.0",
33+
"laravel/sail": "^1.0",
34+
"mockery/mockery": "^1.0",
35+
"nunomaduro/collision": "^8.0",
3636
"pestphp/pest": "^2.0",
3737
"pestphp/pest-plugin-laravel": "^2.0",
38-
"pestphp/pest-plugin-livewire": "^2.1",
38+
"pestphp/pest-plugin-livewire": "^2.0",
3939
"spatie/laravel-ignition": "^2.0"
4040
},
4141
"autoload": {

0 commit comments

Comments
 (0)