Bläddra i källkod

refactor: use basic one-to-one relationship instead for Account/BankAccount

3.x
wallo 1 år sedan
förälder
incheckning
fad30b138e

+ 0
- 1
app/Filament/Company/Clusters/Settings/Pages/Invoice.php Visa fil

@@ -15,7 +15,6 @@ use Filament\Forms\Components\ColorPicker;
15 15
 use Filament\Forms\Components\Component;
16 16
 use Filament\Forms\Components\FileUpload;
17 17
 use Filament\Forms\Components\Grid;
18
-use Filament\Forms\Components\MarkdownEditor;
19 18
 use Filament\Forms\Components\Section;
20 19
 use Filament\Forms\Components\Select;
21 20
 use Filament\Forms\Components\Textarea;

+ 2
- 2
app/Filament/Company/Clusters/Settings/Pages/Localization.php Visa fil

@@ -127,10 +127,10 @@ class Localization extends Page
127 127
                     ->options(LocalizationModel::getAllLanguages())
128 128
                     ->searchable(),
129 129
                 Select::make('timezone')
130
+                    ->softRequired()
130 131
                     ->localizeLabel()
131 132
                     ->options(Timezone::getTimezoneOptions(CompanyProfileModel::first()->country))
132
-                    ->searchable()
133
-                    ->nullable(),
133
+                    ->searchable(),
134 134
             ])->columns();
135 135
     }
136 136
 

+ 1
- 1
app/Filament/Company/Pages/Accounting/Transactions.php Visa fil

@@ -718,7 +718,7 @@ class Transactions extends Page implements HasTable
718 718
         };
719 719
 
720 720
         return Account::query()
721
-            ->when($nominalAccountsOnly, fn (Builder $query) => $query->whereNull('accountable_type'))
721
+            ->when($nominalAccountsOnly, fn (Builder $query) => $query->doesntHave('bankAccount'))
722 722
             ->when($excludedCategory, fn (Builder $query) => $query->whereNot('category', $excludedCategory))
723 723
             ->get()
724 724
             ->groupBy(fn (Account $account) => $account->category->getPluralLabel())

+ 1
- 1
app/Listeners/ConfigureChartOfAccounts.php Visa fil

@@ -79,7 +79,7 @@ class ConfigureChartOfAccounts
79 79
                 ]);
80 80
 
81 81
                 if ($bankAccount) {
82
-                    $account->accountable()->associate($bankAccount);
82
+                    $account->bankAccount()->associate($bankAccount);
83 83
                 }
84 84
 
85 85
                 $account->save();

+ 4
- 5
app/Models/Accounting/Account.php Visa fil

@@ -7,6 +7,7 @@ use App\Concerns\CompanyOwned;
7 7
 use App\Enums\Accounting\AccountCategory;
8 8
 use App\Enums\Accounting\AccountType;
9 9
 use App\Facades\Accounting;
10
+use App\Models\Banking\BankAccount;
10 11
 use App\Models\Setting\Currency;
11 12
 use App\Observers\AccountObserver;
12 13
 use Database\Factories\Accounting\AccountFactory;
@@ -17,7 +18,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
17 18
 use Illuminate\Database\Eloquent\Model;
18 19
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
19 20
 use Illuminate\Database\Eloquent\Relations\HasMany;
20
-use Illuminate\Database\Eloquent\Relations\MorphTo;
21 21
 use Illuminate\Support\Carbon;
22 22
 
23 23
 #[ObservedBy(AccountObserver::class)]
@@ -41,8 +41,7 @@ class Account extends Model
41 41
         'description',
42 42
         'active',
43 43
         'default',
44
-        'accountable_id',
45
-        'accountable_type',
44
+        'bank_account_id',
46 45
         'created_by',
47 46
         'updated_by',
48 47
     ];
@@ -75,9 +74,9 @@ class Account extends Model
75 74
         return $this->belongsTo(Currency::class, 'currency_code', 'code');
76 75
     }
77 76
 
78
-    public function accountable(): MorphTo
77
+    public function bankAccount(): BelongsTo
79 78
     {
80
-        return $this->morphTo();
79
+        return $this->belongsTo(BankAccount::class, 'bank_account_id');
81 80
     }
82 81
 
83 82
     public function getLastTransactionDate(): ?string

+ 0
- 6
app/Models/Accounting/JournalEntry.php Visa fil

@@ -7,7 +7,6 @@ use App\Collections\Accounting\JournalEntryCollection;
7 7
 use App\Concerns\Blamable;
8 8
 use App\Concerns\CompanyOwned;
9 9
 use App\Enums\Accounting\JournalEntryType;
10
-use App\Models\Banking\BankAccount;
11 10
 use Database\Factories\Accounting\JournalEntryFactory;
12 11
 use Illuminate\Database\Eloquent\Factories\Factory;
13 12
 use Illuminate\Database\Eloquent\Factories\HasFactory;
@@ -46,11 +45,6 @@ class JournalEntry extends Model
46 45
         return $this->belongsTo(Transaction::class, 'transaction_id');
47 46
     }
48 47
 
49
-    public function bankAccount(): BelongsTo
50
-    {
51
-        return $this->account()->where('accountable_type', BankAccount::class);
52
-    }
53
-
54 48
     public function isUncategorized(): bool
55 49
     {
56 50
         return $this->account->isUncategorized();

+ 2
- 3
app/Models/Banking/BankAccount.php Visa fil

@@ -19,7 +19,6 @@ use Illuminate\Database\Eloquent\Model;
19 19
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
20 20
 use Illuminate\Database\Eloquent\Relations\HasMany;
21 21
 use Illuminate\Database\Eloquent\Relations\HasOne;
22
-use Illuminate\Database\Eloquent\Relations\MorphOne;
23 22
 
24 23
 #[ObservedBy(BankAccountObserver::class)]
25 24
 class BankAccount extends Model
@@ -56,9 +55,9 @@ class BankAccount extends Model
56 55
         return $this->hasOne(ConnectedBankAccount::class, 'bank_account_id');
57 56
     }
58 57
 
59
-    public function account(): MorphOne
58
+    public function account(): HasOne
60 59
     {
61
-        return $this->morphOne(Account::class, 'accountable');
60
+        return $this->hasOne(Account::class, 'bank_account_id');
62 61
     }
63 62
 
64 63
     public function institution(): BelongsTo

+ 3
- 28
app/Models/Banking/Institution.php Visa fil

@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Collection;
7 7
 use Illuminate\Database\Eloquent\Factories\HasFactory;
8 8
 use Illuminate\Database\Eloquent\Model;
9 9
 use Illuminate\Database\Eloquent\Relations\HasMany;
10
-use Illuminate\Support\Carbon;
10
+use Illuminate\Database\Eloquent\Relations\HasOne;
11 11
 use Illuminate\Support\Facades\Storage;
12 12
 
13 13
 class Institution extends Model
@@ -46,34 +46,9 @@ class Institution extends Model
46 46
         return $this->hasMany(ConnectedBankAccount::class, 'institution_id');
47 47
     }
48 48
 
49
-    public function getLastTransactionDate(): ?string
49
+    public function latestImport(): HasOne
50 50
     {
51
-        $latestDate = $this->connectedBankAccounts->map(function ($connectedBankAccount) {
52
-            if ($connectedBankAccount->bankAccount) {
53
-                return $connectedBankAccount->bankAccount->transactions()->max('posted_at');
54
-            }
55
-
56
-            return null;
57
-        })->filter()->max();
58
-
59
-        if ($latestDate) {
60
-            return Carbon::parse($latestDate)->diffForHumans();
61
-        }
62
-
63
-        return null;
64
-    }
65
-
66
-    public function getLastImportDate(): ?string
67
-    {
68
-        $latestDate = $this->connectedBankAccounts->map(function ($connectedBankAccount) {
69
-            return $connectedBankAccount->last_imported_at;
70
-        })->filter()->max();
71
-
72
-        if ($latestDate) {
73
-            return Carbon::parse($latestDate)->diffForHumans();
74
-        }
75
-
76
-        return null;
51
+        return $this->hasOne(ConnectedBankAccount::class, 'institution_id')->latestOfMany('last_imported_at');
77 52
     }
78 53
 
79 54
     protected function logoUrl(): Attribute

+ 2
- 4
app/Observers/AccountObserver.php Visa fil

@@ -6,7 +6,6 @@ use App\Enums\Accounting\AccountCategory;
6 6
 use App\Enums\Accounting\AccountType;
7 7
 use App\Models\Accounting\Account;
8 8
 use App\Models\Accounting\AccountSubtype;
9
-use App\Models\Banking\BankAccount;
10 9
 use App\Utilities\Accounting\AccountCode;
11 10
 
12 11
 class AccountObserver
@@ -41,8 +40,6 @@ class AccountObserver
41 40
         $generatedAccountCode = AccountCode::generate($account->subtype);
42 41
 
43 42
         $account->code = $generatedAccountCode;
44
-
45
-        $account->save();
46 43
     }
47 44
 
48 45
     /**
@@ -50,8 +47,9 @@ class AccountObserver
50 47
      */
51 48
     public function created(Account $account): void
52 49
     {
53
-        if (($account->accountable_type === BankAccount::class) && $account->code === null) {
50
+        if ($account->bankAccount && $account->code === null) {
54 51
             $this->setFieldsForBankAccount($account);
52
+            $account->save();
55 53
         }
56 54
     }
57 55
 }

+ 8
- 4
app/Services/AccountService.php Visa fil

@@ -189,15 +189,19 @@ class AccountService implements AccountHandler
189 189
 
190 190
     public function getTotalBalanceForAllBankAccounts(string $startDate, string $endDate): Money
191 191
     {
192
-        $bankAccountsAccounts = Account::where('accountable_type', BankAccount::class)
192
+        $bankAccounts = BankAccount::with('account')
193 193
             ->get();
194 194
 
195 195
         $totalBalance = 0;
196 196
 
197 197
         // Get ending balance for each bank account
198
-        foreach ($bankAccountsAccounts as $account) {
199
-            $endingBalance = $this->getEndingBalance($account, $startDate, $endDate)?->getAmount() ?? 0;
200
-            $totalBalance += $endingBalance;
198
+        foreach ($bankAccounts as $bankAccount) {
199
+            $account = $bankAccount->account;
200
+
201
+            if ($account) {
202
+                $endingBalance = $this->getEndingBalance($account, $startDate, $endDate)?->getAmount() ?? 0;
203
+                $totalBalance += $endingBalance;
204
+            }
201 205
         }
202 206
 
203 207
         return new Money($totalBalance, CurrencyAccessor::getDefaultCurrency());

+ 141
- 158
composer.lock Visa fil

@@ -497,16 +497,16 @@
497 497
         },
498 498
         {
499 499
             "name": "aws/aws-sdk-php",
500
-            "version": "3.306.7",
500
+            "version": "3.308.1",
501 501
             "source": {
502 502
                 "type": "git",
503 503
                 "url": "https://github.com/aws/aws-sdk-php.git",
504
-                "reference": "bc30df54badd9d2af8d291cd0665ade6eb509598"
504
+                "reference": "bf5f1221d4c5c67d3213150fb91dfb5ce627227b"
505 505
             },
506 506
             "dist": {
507 507
                 "type": "zip",
508
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/bc30df54badd9d2af8d291cd0665ade6eb509598",
509
-                "reference": "bc30df54badd9d2af8d291cd0665ade6eb509598",
508
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/bf5f1221d4c5c67d3213150fb91dfb5ce627227b",
509
+                "reference": "bf5f1221d4c5c67d3213150fb91dfb5ce627227b",
510 510
                 "shasum": ""
511 511
             },
512 512
             "require": {
@@ -586,9 +586,9 @@
586 586
             "support": {
587 587
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
588 588
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
589
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.306.7"
589
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.308.1"
590 590
             },
591
-            "time": "2024-05-15T18:04:12+00:00"
591
+            "time": "2024-05-22T18:05:56+00:00"
592 592
         },
593 593
         {
594 594
             "name": "aws/aws-sdk-php-laravel",
@@ -1536,16 +1536,16 @@
1536 1536
         },
1537 1537
         {
1538 1538
             "name": "doctrine/event-manager",
1539
-            "version": "2.0.0",
1539
+            "version": "2.0.1",
1540 1540
             "source": {
1541 1541
                 "type": "git",
1542 1542
                 "url": "https://github.com/doctrine/event-manager.git",
1543
-                "reference": "750671534e0241a7c50ea5b43f67e23eb5c96f32"
1543
+                "reference": "b680156fa328f1dfd874fd48c7026c41570b9c6e"
1544 1544
             },
1545 1545
             "dist": {
1546 1546
                 "type": "zip",
1547
-                "url": "https://api.github.com/repos/doctrine/event-manager/zipball/750671534e0241a7c50ea5b43f67e23eb5c96f32",
1548
-                "reference": "750671534e0241a7c50ea5b43f67e23eb5c96f32",
1547
+                "url": "https://api.github.com/repos/doctrine/event-manager/zipball/b680156fa328f1dfd874fd48c7026c41570b9c6e",
1548
+                "reference": "b680156fa328f1dfd874fd48c7026c41570b9c6e",
1549 1549
                 "shasum": ""
1550 1550
             },
1551 1551
             "require": {
@@ -1555,10 +1555,10 @@
1555 1555
                 "doctrine/common": "<2.9"
1556 1556
             },
1557 1557
             "require-dev": {
1558
-                "doctrine/coding-standard": "^10",
1558
+                "doctrine/coding-standard": "^12",
1559 1559
                 "phpstan/phpstan": "^1.8.8",
1560
-                "phpunit/phpunit": "^9.5",
1561
-                "vimeo/psalm": "^4.28"
1560
+                "phpunit/phpunit": "^10.5",
1561
+                "vimeo/psalm": "^5.24"
1562 1562
             },
1563 1563
             "type": "library",
1564 1564
             "autoload": {
@@ -1607,7 +1607,7 @@
1607 1607
             ],
1608 1608
             "support": {
1609 1609
                 "issues": "https://github.com/doctrine/event-manager/issues",
1610
-                "source": "https://github.com/doctrine/event-manager/tree/2.0.0"
1610
+                "source": "https://github.com/doctrine/event-manager/tree/2.0.1"
1611 1611
             },
1612 1612
             "funding": [
1613 1613
                 {
@@ -1623,7 +1623,7 @@
1623 1623
                     "type": "tidelift"
1624 1624
                 }
1625 1625
             ],
1626
-            "time": "2022-10-12T20:59:15+00:00"
1626
+            "time": "2024-05-22T20:47:39+00:00"
1627 1627
         },
1628 1628
         {
1629 1629
             "name": "doctrine/inflector",
@@ -1985,16 +1985,16 @@
1985 1985
         },
1986 1986
         {
1987 1987
             "name": "filament/actions",
1988
-            "version": "v3.2.79",
1988
+            "version": "v3.2.81",
1989 1989
             "source": {
1990 1990
                 "type": "git",
1991 1991
                 "url": "https://github.com/filamentphp/actions.git",
1992
-                "reference": "272fa664b456ec01c098026170960317b260ed30"
1992
+                "reference": "05e19bf192dfc7eb13989543c4fae4c41ee08124"
1993 1993
             },
1994 1994
             "dist": {
1995 1995
                 "type": "zip",
1996
-                "url": "https://api.github.com/repos/filamentphp/actions/zipball/272fa664b456ec01c098026170960317b260ed30",
1997
-                "reference": "272fa664b456ec01c098026170960317b260ed30",
1996
+                "url": "https://api.github.com/repos/filamentphp/actions/zipball/05e19bf192dfc7eb13989543c4fae4c41ee08124",
1997
+                "reference": "05e19bf192dfc7eb13989543c4fae4c41ee08124",
1998 1998
                 "shasum": ""
1999 1999
             },
2000 2000
             "require": {
@@ -2034,20 +2034,20 @@
2034 2034
                 "issues": "https://github.com/filamentphp/filament/issues",
2035 2035
                 "source": "https://github.com/filamentphp/filament"
2036 2036
             },
2037
-            "time": "2024-05-15T10:37:05+00:00"
2037
+            "time": "2024-05-20T16:26:41+00:00"
2038 2038
         },
2039 2039
         {
2040 2040
             "name": "filament/filament",
2041
-            "version": "v3.2.79",
2041
+            "version": "v3.2.81",
2042 2042
             "source": {
2043 2043
                 "type": "git",
2044 2044
                 "url": "https://github.com/filamentphp/panels.git",
2045
-                "reference": "a8b17780beaf28925a9a9eb721f0f7f8483bcbcf"
2045
+                "reference": "3fb5cbeb32b02ef196a750441c7ac452c273efab"
2046 2046
             },
2047 2047
             "dist": {
2048 2048
                 "type": "zip",
2049
-                "url": "https://api.github.com/repos/filamentphp/panels/zipball/a8b17780beaf28925a9a9eb721f0f7f8483bcbcf",
2050
-                "reference": "a8b17780beaf28925a9a9eb721f0f7f8483bcbcf",
2049
+                "url": "https://api.github.com/repos/filamentphp/panels/zipball/3fb5cbeb32b02ef196a750441c7ac452c273efab",
2050
+                "reference": "3fb5cbeb32b02ef196a750441c7ac452c273efab",
2051 2051
                 "shasum": ""
2052 2052
             },
2053 2053
             "require": {
@@ -2099,20 +2099,20 @@
2099 2099
                 "issues": "https://github.com/filamentphp/filament/issues",
2100 2100
                 "source": "https://github.com/filamentphp/filament"
2101 2101
             },
2102
-            "time": "2024-05-15T10:37:20+00:00"
2102
+            "time": "2024-05-20T16:26:45+00:00"
2103 2103
         },
2104 2104
         {
2105 2105
             "name": "filament/forms",
2106
-            "version": "v3.2.79",
2106
+            "version": "v3.2.81",
2107 2107
             "source": {
2108 2108
                 "type": "git",
2109 2109
                 "url": "https://github.com/filamentphp/forms.git",
2110
-                "reference": "2cc78f16674f91d5dd08796a59520ea4ea8229ab"
2110
+                "reference": "9ab84e46226acdbbf48e1f73fa1d141d566eab73"
2111 2111
             },
2112 2112
             "dist": {
2113 2113
                 "type": "zip",
2114
-                "url": "https://api.github.com/repos/filamentphp/forms/zipball/2cc78f16674f91d5dd08796a59520ea4ea8229ab",
2115
-                "reference": "2cc78f16674f91d5dd08796a59520ea4ea8229ab",
2114
+                "url": "https://api.github.com/repos/filamentphp/forms/zipball/9ab84e46226acdbbf48e1f73fa1d141d566eab73",
2115
+                "reference": "9ab84e46226acdbbf48e1f73fa1d141d566eab73",
2116 2116
                 "shasum": ""
2117 2117
             },
2118 2118
             "require": {
@@ -2155,20 +2155,20 @@
2155 2155
                 "issues": "https://github.com/filamentphp/filament/issues",
2156 2156
                 "source": "https://github.com/filamentphp/filament"
2157 2157
             },
2158
-            "time": "2024-05-15T10:37:07+00:00"
2158
+            "time": "2024-05-20T16:26:41+00:00"
2159 2159
         },
2160 2160
         {
2161 2161
             "name": "filament/infolists",
2162
-            "version": "v3.2.79",
2162
+            "version": "v3.2.81",
2163 2163
             "source": {
2164 2164
                 "type": "git",
2165 2165
                 "url": "https://github.com/filamentphp/infolists.git",
2166
-                "reference": "1dd25e010df2c1983e09588601f5ffc60b781c90"
2166
+                "reference": "214c92c446277bb6599758a29ad885e79b11e6b0"
2167 2167
             },
2168 2168
             "dist": {
2169 2169
                 "type": "zip",
2170
-                "url": "https://api.github.com/repos/filamentphp/infolists/zipball/1dd25e010df2c1983e09588601f5ffc60b781c90",
2171
-                "reference": "1dd25e010df2c1983e09588601f5ffc60b781c90",
2170
+                "url": "https://api.github.com/repos/filamentphp/infolists/zipball/214c92c446277bb6599758a29ad885e79b11e6b0",
2171
+                "reference": "214c92c446277bb6599758a29ad885e79b11e6b0",
2172 2172
                 "shasum": ""
2173 2173
             },
2174 2174
             "require": {
@@ -2206,11 +2206,11 @@
2206 2206
                 "issues": "https://github.com/filamentphp/filament/issues",
2207 2207
                 "source": "https://github.com/filamentphp/filament"
2208 2208
             },
2209
-            "time": "2024-05-13T11:04:31+00:00"
2209
+            "time": "2024-05-16T11:11:37+00:00"
2210 2210
         },
2211 2211
         {
2212 2212
             "name": "filament/notifications",
2213
-            "version": "v3.2.79",
2213
+            "version": "v3.2.81",
2214 2214
             "source": {
2215 2215
                 "type": "git",
2216 2216
                 "url": "https://github.com/filamentphp/notifications.git",
@@ -2262,16 +2262,16 @@
2262 2262
         },
2263 2263
         {
2264 2264
             "name": "filament/support",
2265
-            "version": "v3.2.79",
2265
+            "version": "v3.2.81",
2266 2266
             "source": {
2267 2267
                 "type": "git",
2268 2268
                 "url": "https://github.com/filamentphp/support.git",
2269
-                "reference": "b49a62028f77a4b7daf5b4caad5d933665cc995a"
2269
+                "reference": "1435caac4c2a454ab0eb11fc6590628eda36aa0b"
2270 2270
             },
2271 2271
             "dist": {
2272 2272
                 "type": "zip",
2273
-                "url": "https://api.github.com/repos/filamentphp/support/zipball/b49a62028f77a4b7daf5b4caad5d933665cc995a",
2274
-                "reference": "b49a62028f77a4b7daf5b4caad5d933665cc995a",
2273
+                "url": "https://api.github.com/repos/filamentphp/support/zipball/1435caac4c2a454ab0eb11fc6590628eda36aa0b",
2274
+                "reference": "1435caac4c2a454ab0eb11fc6590628eda36aa0b",
2275 2275
                 "shasum": ""
2276 2276
             },
2277 2277
             "require": {
@@ -2316,20 +2316,20 @@
2316 2316
                 "issues": "https://github.com/filamentphp/filament/issues",
2317 2317
                 "source": "https://github.com/filamentphp/filament"
2318 2318
             },
2319
-            "time": "2024-05-13T11:05:17+00:00"
2319
+            "time": "2024-05-20T16:26:41+00:00"
2320 2320
         },
2321 2321
         {
2322 2322
             "name": "filament/tables",
2323
-            "version": "v3.2.79",
2323
+            "version": "v3.2.81",
2324 2324
             "source": {
2325 2325
                 "type": "git",
2326 2326
                 "url": "https://github.com/filamentphp/tables.git",
2327
-                "reference": "c1265e97447aa6acaaa18026851f516e3ddbcbd3"
2327
+                "reference": "9f0141c7076c096b90cf1e22b45d7ddc3db9c8d5"
2328 2328
             },
2329 2329
             "dist": {
2330 2330
                 "type": "zip",
2331
-                "url": "https://api.github.com/repos/filamentphp/tables/zipball/c1265e97447aa6acaaa18026851f516e3ddbcbd3",
2332
-                "reference": "c1265e97447aa6acaaa18026851f516e3ddbcbd3",
2331
+                "url": "https://api.github.com/repos/filamentphp/tables/zipball/9f0141c7076c096b90cf1e22b45d7ddc3db9c8d5",
2332
+                "reference": "9f0141c7076c096b90cf1e22b45d7ddc3db9c8d5",
2333 2333
                 "shasum": ""
2334 2334
             },
2335 2335
             "require": {
@@ -2369,20 +2369,20 @@
2369 2369
                 "issues": "https://github.com/filamentphp/filament/issues",
2370 2370
                 "source": "https://github.com/filamentphp/filament"
2371 2371
             },
2372
-            "time": "2024-05-14T12:08:22+00:00"
2372
+            "time": "2024-05-20T16:26:45+00:00"
2373 2373
         },
2374 2374
         {
2375 2375
             "name": "filament/widgets",
2376
-            "version": "v3.2.79",
2376
+            "version": "v3.2.81",
2377 2377
             "source": {
2378 2378
                 "type": "git",
2379 2379
                 "url": "https://github.com/filamentphp/widgets.git",
2380
-                "reference": "65ec747c3eac23664a2bcbd6adb61babc0c41b51"
2380
+                "reference": "8f30d0120641d055a9ab47689d19258a1d670444"
2381 2381
             },
2382 2382
             "dist": {
2383 2383
                 "type": "zip",
2384
-                "url": "https://api.github.com/repos/filamentphp/widgets/zipball/65ec747c3eac23664a2bcbd6adb61babc0c41b51",
2385
-                "reference": "65ec747c3eac23664a2bcbd6adb61babc0c41b51",
2384
+                "url": "https://api.github.com/repos/filamentphp/widgets/zipball/8f30d0120641d055a9ab47689d19258a1d670444",
2385
+                "reference": "8f30d0120641d055a9ab47689d19258a1d670444",
2386 2386
                 "shasum": ""
2387 2387
             },
2388 2388
             "require": {
@@ -2413,30 +2413,30 @@
2413 2413
                 "issues": "https://github.com/filamentphp/filament/issues",
2414 2414
                 "source": "https://github.com/filamentphp/filament"
2415 2415
             },
2416
-            "time": "2024-05-08T16:21:40+00:00"
2416
+            "time": "2024-05-20T16:26:42+00:00"
2417 2417
         },
2418 2418
         {
2419 2419
             "name": "firebase/php-jwt",
2420
-            "version": "v6.10.0",
2420
+            "version": "v6.10.1",
2421 2421
             "source": {
2422 2422
                 "type": "git",
2423 2423
                 "url": "https://github.com/firebase/php-jwt.git",
2424
-                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff"
2424
+                "reference": "500501c2ce893c824c801da135d02661199f60c5"
2425 2425
             },
2426 2426
             "dist": {
2427 2427
                 "type": "zip",
2428
-                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff",
2429
-                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff",
2428
+                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
2429
+                "reference": "500501c2ce893c824c801da135d02661199f60c5",
2430 2430
                 "shasum": ""
2431 2431
             },
2432 2432
             "require": {
2433
-                "php": "^7.4||^8.0"
2433
+                "php": "^8.0"
2434 2434
             },
2435 2435
             "require-dev": {
2436
-                "guzzlehttp/guzzle": "^6.5||^7.4",
2436
+                "guzzlehttp/guzzle": "^7.4",
2437 2437
                 "phpspec/prophecy-phpunit": "^2.0",
2438 2438
                 "phpunit/phpunit": "^9.5",
2439
-                "psr/cache": "^1.0||^2.0",
2439
+                "psr/cache": "^2.0||^3.0",
2440 2440
                 "psr/http-client": "^1.0",
2441 2441
                 "psr/http-factory": "^1.0"
2442 2442
             },
@@ -2474,9 +2474,9 @@
2474 2474
             ],
2475 2475
             "support": {
2476 2476
                 "issues": "https://github.com/firebase/php-jwt/issues",
2477
-                "source": "https://github.com/firebase/php-jwt/tree/v6.10.0"
2477
+                "source": "https://github.com/firebase/php-jwt/tree/v6.10.1"
2478 2478
             },
2479
-            "time": "2023-12-01T16:26:39+00:00"
2479
+            "time": "2024-05-18T18:05:11+00:00"
2480 2480
         },
2481 2481
         {
2482 2482
             "name": "fruitcake/php-cors",
@@ -2613,16 +2613,16 @@
2613 2613
         },
2614 2614
         {
2615 2615
             "name": "guava/filament-clusters",
2616
-            "version": "1.2.0",
2616
+            "version": "1.2.1",
2617 2617
             "source": {
2618 2618
                 "type": "git",
2619 2619
                 "url": "https://github.com/GuavaCZ/filament-clusters.git",
2620
-                "reference": "b9bd5a413e8f392653c06e77acb19c20b6a26924"
2620
+                "reference": "dcc1902505874be461374ecbc57f282228ff56fd"
2621 2621
             },
2622 2622
             "dist": {
2623 2623
                 "type": "zip",
2624
-                "url": "https://api.github.com/repos/GuavaCZ/filament-clusters/zipball/b9bd5a413e8f392653c06e77acb19c20b6a26924",
2625
-                "reference": "b9bd5a413e8f392653c06e77acb19c20b6a26924",
2624
+                "url": "https://api.github.com/repos/GuavaCZ/filament-clusters/zipball/dcc1902505874be461374ecbc57f282228ff56fd",
2625
+                "reference": "dcc1902505874be461374ecbc57f282228ff56fd",
2626 2626
                 "shasum": ""
2627 2627
             },
2628 2628
             "require": {
@@ -2676,7 +2676,7 @@
2676 2676
             ],
2677 2677
             "support": {
2678 2678
                 "issues": "https://github.com/GuavaCZ/filament-clusters/issues",
2679
-                "source": "https://github.com/GuavaCZ/filament-clusters/tree/1.2.0"
2679
+                "source": "https://github.com/GuavaCZ/filament-clusters/tree/1.2.1"
2680 2680
             },
2681 2681
             "funding": [
2682 2682
                 {
@@ -2684,7 +2684,7 @@
2684 2684
                     "type": "github"
2685 2685
                 }
2686 2686
             ],
2687
-            "time": "2024-03-15T12:43:01+00:00"
2687
+            "time": "2024-05-21T07:18:53+00:00"
2688 2688
         },
2689 2689
         {
2690 2690
             "name": "guzzlehttp/guzzle",
@@ -3161,16 +3161,16 @@
3161 3161
         },
3162 3162
         {
3163 3163
             "name": "laravel/framework",
3164
-            "version": "v11.7.0",
3164
+            "version": "v11.8.0",
3165 3165
             "source": {
3166 3166
                 "type": "git",
3167 3167
                 "url": "https://github.com/laravel/framework.git",
3168
-                "reference": "e5ac72f513f635f208024aa76b8a04efc1b47f93"
3168
+                "reference": "ceb892a25817c888ef3df4d1a2af9cac53978300"
3169 3169
             },
3170 3170
             "dist": {
3171 3171
                 "type": "zip",
3172
-                "url": "https://api.github.com/repos/laravel/framework/zipball/e5ac72f513f635f208024aa76b8a04efc1b47f93",
3173
-                "reference": "e5ac72f513f635f208024aa76b8a04efc1b47f93",
3172
+                "url": "https://api.github.com/repos/laravel/framework/zipball/ceb892a25817c888ef3df4d1a2af9cac53978300",
3173
+                "reference": "ceb892a25817c888ef3df4d1a2af9cac53978300",
3174 3174
                 "shasum": ""
3175 3175
             },
3176 3176
             "require": {
@@ -3295,7 +3295,7 @@
3295 3295
                 "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.",
3296 3296
                 "ext-pdo": "Required to use all database features.",
3297 3297
                 "ext-posix": "Required to use all features of the queue worker.",
3298
-                "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).",
3298
+                "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0|^6.0).",
3299 3299
                 "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).",
3300 3300
                 "filp/whoops": "Required for friendly error pages in development (^2.14.3).",
3301 3301
                 "laravel/tinker": "Required to use the tinker console command (^2.0).",
@@ -3362,20 +3362,20 @@
3362 3362
                 "issues": "https://github.com/laravel/framework/issues",
3363 3363
                 "source": "https://github.com/laravel/framework"
3364 3364
             },
3365
-            "time": "2024-05-07T13:41:51+00:00"
3365
+            "time": "2024-05-21T17:57:45+00:00"
3366 3366
         },
3367 3367
         {
3368 3368
             "name": "laravel/prompts",
3369
-            "version": "v0.1.21",
3369
+            "version": "v0.1.22",
3370 3370
             "source": {
3371 3371
                 "type": "git",
3372 3372
                 "url": "https://github.com/laravel/prompts.git",
3373
-                "reference": "23ea808e8a145653e0ab29e30d4385e49f40a920"
3373
+                "reference": "37f94de71758dbfbccc9d299b0e5eb76e02a40f5"
3374 3374
             },
3375 3375
             "dist": {
3376 3376
                 "type": "zip",
3377
-                "url": "https://api.github.com/repos/laravel/prompts/zipball/23ea808e8a145653e0ab29e30d4385e49f40a920",
3378
-                "reference": "23ea808e8a145653e0ab29e30d4385e49f40a920",
3377
+                "url": "https://api.github.com/repos/laravel/prompts/zipball/37f94de71758dbfbccc9d299b0e5eb76e02a40f5",
3378
+                "reference": "37f94de71758dbfbccc9d299b0e5eb76e02a40f5",
3379 3379
                 "shasum": ""
3380 3380
             },
3381 3381
             "require": {
@@ -3418,9 +3418,9 @@
3418 3418
             "description": "Add beautiful and user-friendly forms to your command-line applications.",
3419 3419
             "support": {
3420 3420
                 "issues": "https://github.com/laravel/prompts/issues",
3421
-                "source": "https://github.com/laravel/prompts/tree/v0.1.21"
3421
+                "source": "https://github.com/laravel/prompts/tree/v0.1.22"
3422 3422
             },
3423
-            "time": "2024-04-30T12:46:16+00:00"
3423
+            "time": "2024-05-10T19:22:18+00:00"
3424 3424
         },
3425 3425
         {
3426 3426
             "name": "laravel/sanctum",
@@ -3963,16 +3963,16 @@
3963 3963
         },
3964 3964
         {
3965 3965
             "name": "league/flysystem",
3966
-            "version": "3.27.0",
3966
+            "version": "3.28.0",
3967 3967
             "source": {
3968 3968
                 "type": "git",
3969 3969
                 "url": "https://github.com/thephpleague/flysystem.git",
3970
-                "reference": "4729745b1ab737908c7d055148c9a6b3e959832f"
3970
+                "reference": "e611adab2b1ae2e3072fa72d62c62f52c2bf1f0c"
3971 3971
             },
3972 3972
             "dist": {
3973 3973
                 "type": "zip",
3974
-                "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/4729745b1ab737908c7d055148c9a6b3e959832f",
3975
-                "reference": "4729745b1ab737908c7d055148c9a6b3e959832f",
3974
+                "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/e611adab2b1ae2e3072fa72d62c62f52c2bf1f0c",
3975
+                "reference": "e611adab2b1ae2e3072fa72d62c62f52c2bf1f0c",
3976 3976
                 "shasum": ""
3977 3977
             },
3978 3978
             "require": {
@@ -3996,10 +3996,13 @@
3996 3996
                 "composer/semver": "^3.0",
3997 3997
                 "ext-fileinfo": "*",
3998 3998
                 "ext-ftp": "*",
3999
+                "ext-mongodb": "^1.3",
3999 4000
                 "ext-zip": "*",
4000 4001
                 "friendsofphp/php-cs-fixer": "^3.5",
4001 4002
                 "google/cloud-storage": "^1.23",
4003
+                "guzzlehttp/psr7": "^2.6",
4002 4004
                 "microsoft/azure-storage-blob": "^1.1",
4005
+                "mongodb/mongodb": "^1.2",
4003 4006
                 "phpseclib/phpseclib": "^3.0.36",
4004 4007
                 "phpstan/phpstan": "^1.10",
4005 4008
                 "phpunit/phpunit": "^9.5.11|^10.0",
@@ -4037,32 +4040,22 @@
4037 4040
             ],
4038 4041
             "support": {
4039 4042
                 "issues": "https://github.com/thephpleague/flysystem/issues",
4040
-                "source": "https://github.com/thephpleague/flysystem/tree/3.27.0"
4043
+                "source": "https://github.com/thephpleague/flysystem/tree/3.28.0"
4041 4044
             },
4042
-            "funding": [
4043
-                {
4044
-                    "url": "https://ecologi.com/frankdejonge",
4045
-                    "type": "custom"
4046
-                },
4047
-                {
4048
-                    "url": "https://github.com/frankdejonge",
4049
-                    "type": "github"
4050
-                }
4051
-            ],
4052
-            "time": "2024-04-07T19:17:50+00:00"
4045
+            "time": "2024-05-22T10:09:12+00:00"
4053 4046
         },
4054 4047
         {
4055 4048
             "name": "league/flysystem-local",
4056
-            "version": "3.25.1",
4049
+            "version": "3.28.0",
4057 4050
             "source": {
4058 4051
                 "type": "git",
4059 4052
                 "url": "https://github.com/thephpleague/flysystem-local.git",
4060
-                "reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92"
4053
+                "reference": "13f22ea8be526ea58c2ddff9e158ef7c296e4f40"
4061 4054
             },
4062 4055
             "dist": {
4063 4056
                 "type": "zip",
4064
-                "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/61a6a90d6e999e4ddd9ce5adb356de0939060b92",
4065
-                "reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92",
4057
+                "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/13f22ea8be526ea58c2ddff9e158ef7c296e4f40",
4058
+                "reference": "13f22ea8be526ea58c2ddff9e158ef7c296e4f40",
4066 4059
                 "shasum": ""
4067 4060
             },
4068 4061
             "require": {
@@ -4096,19 +4089,9 @@
4096 4089
                 "local"
4097 4090
             ],
4098 4091
             "support": {
4099
-                "source": "https://github.com/thephpleague/flysystem-local/tree/3.25.1"
4092
+                "source": "https://github.com/thephpleague/flysystem-local/tree/3.28.0"
4100 4093
             },
4101
-            "funding": [
4102
-                {
4103
-                    "url": "https://ecologi.com/frankdejonge",
4104
-                    "type": "custom"
4105
-                },
4106
-                {
4107
-                    "url": "https://github.com/frankdejonge",
4108
-                    "type": "github"
4109
-                }
4110
-            ],
4111
-            "time": "2024-03-15T19:58:44+00:00"
4094
+            "time": "2024-05-06T20:05:52+00:00"
4112 4095
         },
4113 4096
         {
4114 4097
             "name": "league/mime-type-detection",
@@ -4418,16 +4401,16 @@
4418 4401
         },
4419 4402
         {
4420 4403
             "name": "livewire/livewire",
4421
-            "version": "v3.4.12",
4404
+            "version": "v3.5.0",
4422 4405
             "source": {
4423 4406
                 "type": "git",
4424 4407
                 "url": "https://github.com/livewire/livewire.git",
4425
-                "reference": "54dd265c17f7b5200627eb9690590e7cbbad1027"
4408
+                "reference": "72e900825c560f0e4e620185b26c5441a8914435"
4426 4409
             },
4427 4410
             "dist": {
4428 4411
                 "type": "zip",
4429
-                "url": "https://api.github.com/repos/livewire/livewire/zipball/54dd265c17f7b5200627eb9690590e7cbbad1027",
4430
-                "reference": "54dd265c17f7b5200627eb9690590e7cbbad1027",
4412
+                "url": "https://api.github.com/repos/livewire/livewire/zipball/72e900825c560f0e4e620185b26c5441a8914435",
4413
+                "reference": "72e900825c560f0e4e620185b26c5441a8914435",
4431 4414
                 "shasum": ""
4432 4415
             },
4433 4416
             "require": {
@@ -4482,7 +4465,7 @@
4482 4465
             "description": "A front-end framework for Laravel.",
4483 4466
             "support": {
4484 4467
                 "issues": "https://github.com/livewire/livewire/issues",
4485
-                "source": "https://github.com/livewire/livewire/tree/v3.4.12"
4468
+                "source": "https://github.com/livewire/livewire/tree/v3.5.0"
4486 4469
             },
4487 4470
             "funding": [
4488 4471
                 {
@@ -4490,7 +4473,7 @@
4490 4473
                     "type": "github"
4491 4474
                 }
4492 4475
             ],
4493
-            "time": "2024-05-02T17:10:37+00:00"
4476
+            "time": "2024-05-21T13:39:04+00:00"
4494 4477
         },
4495 4478
         {
4496 4479
             "name": "masterminds/html5",
@@ -5251,16 +5234,16 @@
5251 5234
         },
5252 5235
         {
5253 5236
             "name": "openspout/openspout",
5254
-            "version": "v4.24.0",
5237
+            "version": "v4.24.1",
5255 5238
             "source": {
5256 5239
                 "type": "git",
5257 5240
                 "url": "https://github.com/openspout/openspout.git",
5258
-                "reference": "51f2a627d4cdcdb06eb451c6f434daeb190c4afb"
5241
+                "reference": "003991abc5cfee93423254774c71766d38cbe340"
5259 5242
             },
5260 5243
             "dist": {
5261 5244
                 "type": "zip",
5262
-                "url": "https://api.github.com/repos/openspout/openspout/zipball/51f2a627d4cdcdb06eb451c6f434daeb190c4afb",
5263
-                "reference": "51f2a627d4cdcdb06eb451c6f434daeb190c4afb",
5245
+                "url": "https://api.github.com/repos/openspout/openspout/zipball/003991abc5cfee93423254774c71766d38cbe340",
5246
+                "reference": "003991abc5cfee93423254774c71766d38cbe340",
5264 5247
                 "shasum": ""
5265 5248
             },
5266 5249
             "require": {
@@ -5274,12 +5257,12 @@
5274 5257
             },
5275 5258
             "require-dev": {
5276 5259
                 "ext-zlib": "*",
5277
-                "friendsofphp/php-cs-fixer": "^3.56.0",
5260
+                "friendsofphp/php-cs-fixer": "^3.57.1",
5278 5261
                 "infection/infection": "^0.28.1",
5279 5262
                 "phpbench/phpbench": "^1.2.15",
5280
-                "phpstan/phpstan": "^1.10.67",
5281
-                "phpstan/phpstan-phpunit": "^1.3.16",
5282
-                "phpstan/phpstan-strict-rules": "^1.5.5",
5263
+                "phpstan/phpstan": "^1.11.1",
5264
+                "phpstan/phpstan-phpunit": "^1.4.0",
5265
+                "phpstan/phpstan-strict-rules": "^1.6.0",
5283 5266
                 "phpunit/phpunit": "^10.5.20"
5284 5267
             },
5285 5268
             "suggest": {
@@ -5328,7 +5311,7 @@
5328 5311
             ],
5329 5312
             "support": {
5330 5313
                 "issues": "https://github.com/openspout/openspout/issues",
5331
-                "source": "https://github.com/openspout/openspout/tree/v4.24.0"
5314
+                "source": "https://github.com/openspout/openspout/tree/v4.24.1"
5332 5315
             },
5333 5316
             "funding": [
5334 5317
                 {
@@ -5340,7 +5323,7 @@
5340 5323
                     "type": "github"
5341 5324
                 }
5342 5325
             ],
5343
-            "time": "2024-05-10T09:06:16+00:00"
5326
+            "time": "2024-05-20T09:32:59+00:00"
5344 5327
         },
5345 5328
         {
5346 5329
             "name": "paragonie/constant_time_encoding",
@@ -6703,16 +6686,16 @@
6703 6686
         },
6704 6687
         {
6705 6688
             "name": "spatie/invade",
6706
-            "version": "2.0.0",
6689
+            "version": "2.1.0",
6707 6690
             "source": {
6708 6691
                 "type": "git",
6709 6692
                 "url": "https://github.com/spatie/invade.git",
6710
-                "reference": "7b20a25486de69198e402da20dc924d8bcc8024a"
6693
+                "reference": "b920f6411d21df4e8610a138e2e87ae4957d7f63"
6711 6694
             },
6712 6695
             "dist": {
6713 6696
                 "type": "zip",
6714
-                "url": "https://api.github.com/repos/spatie/invade/zipball/7b20a25486de69198e402da20dc924d8bcc8024a",
6715
-                "reference": "7b20a25486de69198e402da20dc924d8bcc8024a",
6697
+                "url": "https://api.github.com/repos/spatie/invade/zipball/b920f6411d21df4e8610a138e2e87ae4957d7f63",
6698
+                "reference": "b920f6411d21df4e8610a138e2e87ae4957d7f63",
6716 6699
                 "shasum": ""
6717 6700
             },
6718 6701
             "require": {
@@ -6750,7 +6733,7 @@
6750 6733
                 "spatie"
6751 6734
             ],
6752 6735
             "support": {
6753
-                "source": "https://github.com/spatie/invade/tree/2.0.0"
6736
+                "source": "https://github.com/spatie/invade/tree/2.1.0"
6754 6737
             },
6755 6738
             "funding": [
6756 6739
                 {
@@ -6758,7 +6741,7 @@
6758 6741
                     "type": "github"
6759 6742
                 }
6760 6743
             ],
6761
-            "time": "2023-07-19T18:55:36+00:00"
6744
+            "time": "2024-05-17T09:06:10+00:00"
6762 6745
         },
6763 6746
         {
6764 6747
             "name": "spatie/laravel-package-tools",
@@ -9838,16 +9821,16 @@
9838 9821
         },
9839 9822
         {
9840 9823
             "name": "laravel/pint",
9841
-            "version": "v1.15.3",
9824
+            "version": "v1.16.0",
9842 9825
             "source": {
9843 9826
                 "type": "git",
9844 9827
                 "url": "https://github.com/laravel/pint.git",
9845
-                "reference": "3600b5d17aff52f6100ea4921849deacbbeb8656"
9828
+                "reference": "1b3a3dc5bc6a81ff52828ba7277621f1d49d6d98"
9846 9829
             },
9847 9830
             "dist": {
9848 9831
                 "type": "zip",
9849
-                "url": "https://api.github.com/repos/laravel/pint/zipball/3600b5d17aff52f6100ea4921849deacbbeb8656",
9850
-                "reference": "3600b5d17aff52f6100ea4921849deacbbeb8656",
9832
+                "url": "https://api.github.com/repos/laravel/pint/zipball/1b3a3dc5bc6a81ff52828ba7277621f1d49d6d98",
9833
+                "reference": "1b3a3dc5bc6a81ff52828ba7277621f1d49d6d98",
9851 9834
                 "shasum": ""
9852 9835
             },
9853 9836
             "require": {
@@ -9858,11 +9841,11 @@
9858 9841
                 "php": "^8.1.0"
9859 9842
             },
9860 9843
             "require-dev": {
9861
-                "friendsofphp/php-cs-fixer": "^3.54.0",
9862
-                "illuminate/view": "^10.48.8",
9863
-                "larastan/larastan": "^2.9.5",
9864
-                "laravel-zero/framework": "^10.3.0",
9865
-                "mockery/mockery": "^1.6.11",
9844
+                "friendsofphp/php-cs-fixer": "^3.57.1",
9845
+                "illuminate/view": "^10.48.10",
9846
+                "larastan/larastan": "^2.9.6",
9847
+                "laravel-zero/framework": "^10.4.0",
9848
+                "mockery/mockery": "^1.6.12",
9866 9849
                 "nunomaduro/termwind": "^1.15.1",
9867 9850
                 "pestphp/pest": "^2.34.7"
9868 9851
             },
@@ -9900,20 +9883,20 @@
9900 9883
                 "issues": "https://github.com/laravel/pint/issues",
9901 9884
                 "source": "https://github.com/laravel/pint"
9902 9885
             },
9903
-            "time": "2024-04-30T15:02:26+00:00"
9886
+            "time": "2024-05-21T18:08:25+00:00"
9904 9887
         },
9905 9888
         {
9906 9889
             "name": "laravel/sail",
9907
-            "version": "v1.29.1",
9890
+            "version": "v1.29.2",
9908 9891
             "source": {
9909 9892
                 "type": "git",
9910 9893
                 "url": "https://github.com/laravel/sail.git",
9911
-                "reference": "8be4a31150eab3b46af11a2e7b2c4632eefaad7e"
9894
+                "reference": "a8e4e749735ba2f091856eafeb3f99db8cd6b621"
9912 9895
             },
9913 9896
             "dist": {
9914 9897
                 "type": "zip",
9915
-                "url": "https://api.github.com/repos/laravel/sail/zipball/8be4a31150eab3b46af11a2e7b2c4632eefaad7e",
9916
-                "reference": "8be4a31150eab3b46af11a2e7b2c4632eefaad7e",
9898
+                "url": "https://api.github.com/repos/laravel/sail/zipball/a8e4e749735ba2f091856eafeb3f99db8cd6b621",
9899
+                "reference": "a8e4e749735ba2f091856eafeb3f99db8cd6b621",
9917 9900
                 "shasum": ""
9918 9901
             },
9919 9902
             "require": {
@@ -9963,20 +9946,20 @@
9963 9946
                 "issues": "https://github.com/laravel/sail/issues",
9964 9947
                 "source": "https://github.com/laravel/sail"
9965 9948
             },
9966
-            "time": "2024-03-20T20:09:31+00:00"
9949
+            "time": "2024-05-16T21:39:11+00:00"
9967 9950
         },
9968 9951
         {
9969 9952
             "name": "mockery/mockery",
9970
-            "version": "1.6.11",
9953
+            "version": "1.6.12",
9971 9954
             "source": {
9972 9955
                 "type": "git",
9973 9956
                 "url": "https://github.com/mockery/mockery.git",
9974
-                "reference": "81a161d0b135df89951abd52296adf97deb0723d"
9957
+                "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699"
9975 9958
             },
9976 9959
             "dist": {
9977 9960
                 "type": "zip",
9978
-                "url": "https://api.github.com/repos/mockery/mockery/zipball/81a161d0b135df89951abd52296adf97deb0723d",
9979
-                "reference": "81a161d0b135df89951abd52296adf97deb0723d",
9961
+                "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699",
9962
+                "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699",
9980 9963
                 "shasum": ""
9981 9964
             },
9982 9965
             "require": {
@@ -10046,7 +10029,7 @@
10046 10029
                 "security": "https://github.com/mockery/mockery/security/advisories",
10047 10030
                 "source": "https://github.com/mockery/mockery"
10048 10031
             },
10049
-            "time": "2024-03-21T18:34:15+00:00"
10032
+            "time": "2024-05-16T03:13:13+00:00"
10050 10033
         },
10051 10034
         {
10052 10035
             "name": "myclabs/deep-copy",
@@ -11725,16 +11708,16 @@
11725 11708
         },
11726 11709
         {
11727 11710
             "name": "spatie/flare-client-php",
11728
-            "version": "1.5.1",
11711
+            "version": "1.6.0",
11729 11712
             "source": {
11730 11713
                 "type": "git",
11731 11714
                 "url": "https://github.com/spatie/flare-client-php.git",
11732
-                "reference": "e27977d534eefe04c154c6fd8460217024054c05"
11715
+                "reference": "220a7c8745e9fa427d54099f47147c4b97fe6462"
11733 11716
             },
11734 11717
             "dist": {
11735 11718
                 "type": "zip",
11736
-                "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/e27977d534eefe04c154c6fd8460217024054c05",
11737
-                "reference": "e27977d534eefe04c154c6fd8460217024054c05",
11719
+                "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/220a7c8745e9fa427d54099f47147c4b97fe6462",
11720
+                "reference": "220a7c8745e9fa427d54099f47147c4b97fe6462",
11738 11721
                 "shasum": ""
11739 11722
             },
11740 11723
             "require": {
@@ -11782,7 +11765,7 @@
11782 11765
             ],
11783 11766
             "support": {
11784 11767
                 "issues": "https://github.com/spatie/flare-client-php/issues",
11785
-                "source": "https://github.com/spatie/flare-client-php/tree/1.5.1"
11768
+                "source": "https://github.com/spatie/flare-client-php/tree/1.6.0"
11786 11769
             },
11787 11770
             "funding": [
11788 11771
                 {
@@ -11790,7 +11773,7 @@
11790 11773
                     "type": "github"
11791 11774
                 }
11792 11775
             ],
11793
-            "time": "2024-05-03T15:43:14+00:00"
11776
+            "time": "2024-05-22T09:45:39+00:00"
11794 11777
         },
11795 11778
         {
11796 11779
             "name": "spatie/ignition",

+ 13
- 14
database/migrations/2023_09_03_100000_create_accounting_tables.php Visa fil

@@ -36,6 +36,18 @@ return new class extends Migration
36 36
             $table->timestamps();
37 37
         });
38 38
 
39
+        Schema::create('bank_accounts', function (Blueprint $table) {
40
+            $table->id();
41
+            $table->foreignId('company_id')->constrained()->cascadeOnDelete();
42
+            $table->foreignId('institution_id')->nullable()->constrained('institutions')->nullOnDelete();
43
+            $table->string('type')->default(BankAccountType::DEFAULT);
44
+            $table->string('number', 20)->nullable();
45
+            $table->boolean('enabled')->default(true);
46
+            $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
47
+            $table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
48
+            $table->timestamps();
49
+        });
50
+
39 51
         Schema::create('accounts', function (Blueprint $table) {
40 52
             $table->id();
41 53
             $table->foreignId('company_id')->constrained()->cascadeOnDelete();
@@ -49,8 +61,7 @@ return new class extends Migration
49 61
             $table->text('description')->nullable();
50 62
             $table->boolean('active')->default(true);
51 63
             $table->boolean('default')->default(false);
52
-            $table->unsignedBigInteger('accountable_id')->nullable();
53
-            $table->string('accountable_type')->nullable();
64
+            $table->foreignId('bank_account_id')->nullable()->constrained('bank_accounts')->cascadeOnDelete();
54 65
             $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
55 66
             $table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
56 67
             $table->timestamps();
@@ -58,18 +69,6 @@ return new class extends Migration
58 69
             $table->unique(['company_id', 'code']);
59 70
         });
60 71
 
61
-        Schema::create('bank_accounts', function (Blueprint $table) {
62
-            $table->id();
63
-            $table->foreignId('company_id')->constrained()->cascadeOnDelete();
64
-            $table->foreignId('institution_id')->nullable()->constrained('institutions')->nullOnDelete();
65
-            $table->string('type')->default(BankAccountType::DEFAULT);
66
-            $table->string('number', 20)->nullable();
67
-            $table->boolean('enabled')->default(true);
68
-            $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
69
-            $table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
70
-            $table->timestamps();
71
-        });
72
-
73 72
         Schema::create('connected_bank_accounts', function (Blueprint $table) {
74 73
             $table->id();
75 74
             $table->foreignId('company_id')->constrained()->cascadeOnDelete();

+ 106
- 106
package-lock.json Visa fil

@@ -507,9 +507,9 @@
507 507
             }
508 508
         },
509 509
         "node_modules/@rollup/rollup-android-arm-eabi": {
510
-            "version": "4.17.2",
511
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.17.2.tgz",
512
-            "integrity": "sha512-NM0jFxY8bB8QLkoKxIQeObCaDlJKewVlIEkuyYKm5An1tdVZ966w2+MPQ2l8LBZLjR+SgyV+nRkTIunzOYBMLQ==",
510
+            "version": "4.18.0",
511
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz",
512
+            "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==",
513 513
             "cpu": [
514 514
                 "arm"
515 515
             ],
@@ -520,9 +520,9 @@
520 520
             ]
521 521
         },
522 522
         "node_modules/@rollup/rollup-android-arm64": {
523
-            "version": "4.17.2",
524
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.17.2.tgz",
525
-            "integrity": "sha512-yeX/Usk7daNIVwkq2uGoq2BYJKZY1JfyLTaHO/jaiSwi/lsf8fTFoQW/n6IdAsx5tx+iotu2zCJwz8MxI6D/Bw==",
523
+            "version": "4.18.0",
524
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz",
525
+            "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==",
526 526
             "cpu": [
527 527
                 "arm64"
528 528
             ],
@@ -533,9 +533,9 @@
533 533
             ]
534 534
         },
535 535
         "node_modules/@rollup/rollup-darwin-arm64": {
536
-            "version": "4.17.2",
537
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.17.2.tgz",
538
-            "integrity": "sha512-kcMLpE6uCwls023+kknm71ug7MZOrtXo+y5p/tsg6jltpDtgQY1Eq5sGfHcQfb+lfuKwhBmEURDga9N0ol4YPw==",
536
+            "version": "4.18.0",
537
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz",
538
+            "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==",
539 539
             "cpu": [
540 540
                 "arm64"
541 541
             ],
@@ -546,9 +546,9 @@
546 546
             ]
547 547
         },
548 548
         "node_modules/@rollup/rollup-darwin-x64": {
549
-            "version": "4.17.2",
550
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.17.2.tgz",
551
-            "integrity": "sha512-AtKwD0VEx0zWkL0ZjixEkp5tbNLzX+FCqGG1SvOu993HnSz4qDI6S4kGzubrEJAljpVkhRSlg5bzpV//E6ysTQ==",
549
+            "version": "4.18.0",
550
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz",
551
+            "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==",
552 552
             "cpu": [
553 553
                 "x64"
554 554
             ],
@@ -559,9 +559,9 @@
559 559
             ]
560 560
         },
561 561
         "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
562
-            "version": "4.17.2",
563
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.17.2.tgz",
564
-            "integrity": "sha512-3reX2fUHqN7sffBNqmEyMQVj/CKhIHZd4y631duy0hZqI8Qoqf6lTtmAKvJFYa6bhU95B1D0WgzHkmTg33In0A==",
562
+            "version": "4.18.0",
563
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz",
564
+            "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==",
565 565
             "cpu": [
566 566
                 "arm"
567 567
             ],
@@ -572,9 +572,9 @@
572 572
             ]
573 573
         },
574 574
         "node_modules/@rollup/rollup-linux-arm-musleabihf": {
575
-            "version": "4.17.2",
576
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.17.2.tgz",
577
-            "integrity": "sha512-uSqpsp91mheRgw96xtyAGP9FW5ChctTFEoXP0r5FAzj/3ZRv3Uxjtc7taRQSaQM/q85KEKjKsZuiZM3GyUivRg==",
575
+            "version": "4.18.0",
576
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz",
577
+            "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==",
578 578
             "cpu": [
579 579
                 "arm"
580 580
             ],
@@ -585,9 +585,9 @@
585 585
             ]
586 586
         },
587 587
         "node_modules/@rollup/rollup-linux-arm64-gnu": {
588
-            "version": "4.17.2",
589
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.17.2.tgz",
590
-            "integrity": "sha512-EMMPHkiCRtE8Wdk3Qhtciq6BndLtstqZIroHiiGzB3C5LDJmIZcSzVtLRbwuXuUft1Cnv+9fxuDtDxz3k3EW2A==",
588
+            "version": "4.18.0",
589
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz",
590
+            "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==",
591 591
             "cpu": [
592 592
                 "arm64"
593 593
             ],
@@ -598,9 +598,9 @@
598 598
             ]
599 599
         },
600 600
         "node_modules/@rollup/rollup-linux-arm64-musl": {
601
-            "version": "4.17.2",
602
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.17.2.tgz",
603
-            "integrity": "sha512-NMPylUUZ1i0z/xJUIx6VUhISZDRT+uTWpBcjdv0/zkp7b/bQDF+NfnfdzuTiB1G6HTodgoFa93hp0O1xl+/UbA==",
601
+            "version": "4.18.0",
602
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz",
603
+            "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==",
604 604
             "cpu": [
605 605
                 "arm64"
606 606
             ],
@@ -611,9 +611,9 @@
611 611
             ]
612 612
         },
613 613
         "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
614
-            "version": "4.17.2",
615
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.17.2.tgz",
616
-            "integrity": "sha512-T19My13y8uYXPw/L/k0JYaX1fJKFT/PWdXiHr8mTbXWxjVF1t+8Xl31DgBBvEKclw+1b00Chg0hxE2O7bTG7GQ==",
614
+            "version": "4.18.0",
615
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz",
616
+            "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==",
617 617
             "cpu": [
618 618
                 "ppc64"
619 619
             ],
@@ -624,9 +624,9 @@
624 624
             ]
625 625
         },
626 626
         "node_modules/@rollup/rollup-linux-riscv64-gnu": {
627
-            "version": "4.17.2",
628
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.17.2.tgz",
629
-            "integrity": "sha512-BOaNfthf3X3fOWAB+IJ9kxTgPmMqPPH5f5k2DcCsRrBIbWnaJCgX2ll77dV1TdSy9SaXTR5iDXRL8n7AnoP5cg==",
627
+            "version": "4.18.0",
628
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz",
629
+            "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==",
630 630
             "cpu": [
631 631
                 "riscv64"
632 632
             ],
@@ -637,9 +637,9 @@
637 637
             ]
638 638
         },
639 639
         "node_modules/@rollup/rollup-linux-s390x-gnu": {
640
-            "version": "4.17.2",
641
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.17.2.tgz",
642
-            "integrity": "sha512-W0UP/x7bnn3xN2eYMql2T/+wpASLE5SjObXILTMPUBDB/Fg/FxC+gX4nvCfPBCbNhz51C+HcqQp2qQ4u25ok6g==",
640
+            "version": "4.18.0",
641
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz",
642
+            "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==",
643 643
             "cpu": [
644 644
                 "s390x"
645 645
             ],
@@ -650,9 +650,9 @@
650 650
             ]
651 651
         },
652 652
         "node_modules/@rollup/rollup-linux-x64-gnu": {
653
-            "version": "4.17.2",
654
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.17.2.tgz",
655
-            "integrity": "sha512-Hy7pLwByUOuyaFC6mAr7m+oMC+V7qyifzs/nW2OJfC8H4hbCzOX07Ov0VFk/zP3kBsELWNFi7rJtgbKYsav9QQ==",
653
+            "version": "4.18.0",
654
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz",
655
+            "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==",
656 656
             "cpu": [
657 657
                 "x64"
658 658
             ],
@@ -663,9 +663,9 @@
663 663
             ]
664 664
         },
665 665
         "node_modules/@rollup/rollup-linux-x64-musl": {
666
-            "version": "4.17.2",
667
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.17.2.tgz",
668
-            "integrity": "sha512-h1+yTWeYbRdAyJ/jMiVw0l6fOOm/0D1vNLui9iPuqgRGnXA0u21gAqOyB5iHjlM9MMfNOm9RHCQ7zLIzT0x11Q==",
666
+            "version": "4.18.0",
667
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz",
668
+            "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==",
669 669
             "cpu": [
670 670
                 "x64"
671 671
             ],
@@ -676,9 +676,9 @@
676 676
             ]
677 677
         },
678 678
         "node_modules/@rollup/rollup-win32-arm64-msvc": {
679
-            "version": "4.17.2",
680
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.17.2.tgz",
681
-            "integrity": "sha512-tmdtXMfKAjy5+IQsVtDiCfqbynAQE/TQRpWdVataHmhMb9DCoJxp9vLcCBjEQWMiUYxO1QprH/HbY9ragCEFLA==",
679
+            "version": "4.18.0",
680
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz",
681
+            "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==",
682 682
             "cpu": [
683 683
                 "arm64"
684 684
             ],
@@ -689,9 +689,9 @@
689 689
             ]
690 690
         },
691 691
         "node_modules/@rollup/rollup-win32-ia32-msvc": {
692
-            "version": "4.17.2",
693
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.17.2.tgz",
694
-            "integrity": "sha512-7II/QCSTAHuE5vdZaQEwJq2ZACkBpQDOmQsE6D6XUbnBHW8IAhm4eTufL6msLJorzrHDFv3CF8oCA/hSIRuZeQ==",
692
+            "version": "4.18.0",
693
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz",
694
+            "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==",
695 695
             "cpu": [
696 696
                 "ia32"
697 697
             ],
@@ -702,9 +702,9 @@
702 702
             ]
703 703
         },
704 704
         "node_modules/@rollup/rollup-win32-x64-msvc": {
705
-            "version": "4.17.2",
706
-            "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.17.2.tgz",
707
-            "integrity": "sha512-TGGO7v7qOq4CYmSBVEYpI1Y5xDuCEnbVC5Vth8mOsW0gDSzxNrVERPc790IGHsrT2dQSimgMr9Ub3Y1Jci5/8w==",
705
+            "version": "4.18.0",
706
+            "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz",
707
+            "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==",
708 708
             "cpu": [
709 709
                 "x64"
710 710
             ],
@@ -840,9 +840,9 @@
840 840
             }
841 841
         },
842 842
         "node_modules/axios": {
843
-            "version": "1.6.8",
844
-            "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
845
-            "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
843
+            "version": "1.7.2",
844
+            "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz",
845
+            "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==",
846 846
             "dev": true,
847 847
             "dependencies": {
848 848
                 "follow-redirects": "^1.15.6",
@@ -878,12 +878,12 @@
878 878
             }
879 879
         },
880 880
         "node_modules/braces": {
881
-            "version": "3.0.2",
882
-            "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
883
-            "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
881
+            "version": "3.0.3",
882
+            "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
883
+            "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
884 884
             "dev": true,
885 885
             "dependencies": {
886
-                "fill-range": "^7.0.1"
886
+                "fill-range": "^7.1.1"
887 887
             },
888 888
             "engines": {
889 889
                 "node": ">=8"
@@ -931,9 +931,9 @@
931 931
             }
932 932
         },
933 933
         "node_modules/caniuse-lite": {
934
-            "version": "1.0.30001618",
935
-            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001618.tgz",
936
-            "integrity": "sha512-p407+D1tIkDvsEAPS22lJxLQQaG8OTBEqo0KhzfABGk0TU4juBNDSfH0hyAp/HRyx+M8L17z/ltyhxh27FTfQg==",
934
+            "version": "1.0.30001621",
935
+            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001621.tgz",
936
+            "integrity": "sha512-+NLXZiviFFKX0fk8Piwv3PfLPGtRqJeq2TiNoUff/qB5KJgwecJTvCXDpmlyP/eCI/GUEmp/h/y5j0yckiiZrA==",
937 937
             "dev": true,
938 938
             "funding": [
939 939
                 {
@@ -1079,9 +1079,9 @@
1079 1079
             "dev": true
1080 1080
         },
1081 1081
         "node_modules/electron-to-chromium": {
1082
-            "version": "1.4.771",
1083
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.771.tgz",
1084
-            "integrity": "sha512-b/CmBh1c5SXZy5oFu4a0o+2TdM0AYStiwoQebEoImGAINstCsS/s/MOvPKMoxu1nA2BJtEOJI1nC/VoVRzdXWA==",
1082
+            "version": "1.4.778",
1083
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.778.tgz",
1084
+            "integrity": "sha512-C6q/xcUJf/2yODRxAVCfIk4j3y3LMsD0ehiE2RQNV2cxc8XU62gR6vvYh3+etSUzlgTfil+qDHI1vubpdf0TOA==",
1085 1085
             "dev": true
1086 1086
         },
1087 1087
         "node_modules/emoji-regex": {
@@ -1175,9 +1175,9 @@
1175 1175
             }
1176 1176
         },
1177 1177
         "node_modules/fill-range": {
1178
-            "version": "7.0.1",
1179
-            "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
1180
-            "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
1178
+            "version": "7.1.1",
1179
+            "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
1180
+            "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
1181 1181
             "dev": true,
1182 1182
             "dependencies": {
1183 1183
                 "to-regex-range": "^5.0.1"
@@ -1273,13 +1273,13 @@
1273 1273
             }
1274 1274
         },
1275 1275
         "node_modules/glob": {
1276
-            "version": "10.3.15",
1277
-            "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz",
1278
-            "integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==",
1276
+            "version": "10.3.16",
1277
+            "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.16.tgz",
1278
+            "integrity": "sha512-JDKXl1DiuuHJ6fVS2FXjownaavciiHNUU4mOvV/B793RLh05vZL1rcPnCSaOgv1hDT6RDlY7AB7ZUvFYAtPgAw==",
1279 1279
             "dev": true,
1280 1280
             "dependencies": {
1281 1281
                 "foreground-child": "^3.1.0",
1282
-                "jackspeak": "^2.3.6",
1282
+                "jackspeak": "^3.1.2",
1283 1283
                 "minimatch": "^9.0.1",
1284 1284
                 "minipass": "^7.0.4",
1285 1285
                 "path-scurry": "^1.11.0"
@@ -1388,9 +1388,9 @@
1388 1388
             "dev": true
1389 1389
         },
1390 1390
         "node_modules/jackspeak": {
1391
-            "version": "2.3.6",
1392
-            "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz",
1393
-            "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
1391
+            "version": "3.1.2",
1392
+            "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.1.2.tgz",
1393
+            "integrity": "sha512-kWmLKn2tRtfYMF/BakihVVRzBKOxz4gJMiL2Rj91WnAB5TPZumSH99R/Yf1qE1u4uRimvCSJfm6hnxohXeEXjQ==",
1394 1394
             "dev": true,
1395 1395
             "dependencies": {
1396 1396
                 "@isaacs/cliui": "^8.0.2"
@@ -1415,9 +1415,9 @@
1415 1415
             }
1416 1416
         },
1417 1417
         "node_modules/laravel-vite-plugin": {
1418
-            "version": "1.0.2",
1419
-            "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.0.2.tgz",
1420
-            "integrity": "sha512-Mcclml10khYzBVxDwJro8wnVDwD4i7XOSEMACQNnarvTnHjrjXLLL+B/Snif2wYAyElsOqagJZ7VAinb/2vF5g==",
1418
+            "version": "1.0.4",
1419
+            "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.0.4.tgz",
1420
+            "integrity": "sha512-dEj8Q/Fsn0kKbOQ55bl/NmyJL+dD6OxnVaM/nNByw5XV4b00ky6FzXKVuHLDr4BvSJKH1y6oaOcEG5wKpCZ5+A==",
1421 1421
             "dev": true,
1422 1422
             "dependencies": {
1423 1423
                 "picocolors": "^1.0.0",
@@ -1485,12 +1485,12 @@
1485 1485
             }
1486 1486
         },
1487 1487
         "node_modules/micromatch": {
1488
-            "version": "4.0.5",
1489
-            "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
1490
-            "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
1488
+            "version": "4.0.7",
1489
+            "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
1490
+            "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
1491 1491
             "dev": true,
1492 1492
             "dependencies": {
1493
-                "braces": "^3.0.2",
1493
+                "braces": "^3.0.3",
1494 1494
                 "picomatch": "^2.3.1"
1495 1495
             },
1496 1496
             "engines": {
@@ -1820,9 +1820,9 @@
1820 1820
             }
1821 1821
         },
1822 1822
         "node_modules/postcss-nested/node_modules/postcss-selector-parser": {
1823
-            "version": "6.0.16",
1824
-            "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz",
1825
-            "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==",
1823
+            "version": "6.1.0",
1824
+            "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz",
1825
+            "integrity": "sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==",
1826 1826
             "dev": true,
1827 1827
             "dependencies": {
1828 1828
                 "cssesc": "^3.0.0",
@@ -1904,9 +1904,9 @@
1904 1904
             }
1905 1905
         },
1906 1906
         "node_modules/postcss-nesting/node_modules/postcss-selector-parser": {
1907
-            "version": "6.0.16",
1908
-            "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz",
1909
-            "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==",
1907
+            "version": "6.1.0",
1908
+            "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz",
1909
+            "integrity": "sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==",
1910 1910
             "dev": true,
1911 1911
             "dependencies": {
1912 1912
                 "cssesc": "^3.0.0",
@@ -2010,9 +2010,9 @@
2010 2010
             }
2011 2011
         },
2012 2012
         "node_modules/rollup": {
2013
-            "version": "4.17.2",
2014
-            "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.17.2.tgz",
2015
-            "integrity": "sha512-/9ClTJPByC0U4zNLowV1tMBe8yMEAxewtR3cUNX5BoEpGH3dQEWpJLr6CLp0fPdYRF/fzVOgvDb1zXuakwF5kQ==",
2013
+            "version": "4.18.0",
2014
+            "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz",
2015
+            "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==",
2016 2016
             "dev": true,
2017 2017
             "dependencies": {
2018 2018
                 "@types/estree": "1.0.5"
@@ -2025,22 +2025,22 @@
2025 2025
                 "npm": ">=8.0.0"
2026 2026
             },
2027 2027
             "optionalDependencies": {
2028
-                "@rollup/rollup-android-arm-eabi": "4.17.2",
2029
-                "@rollup/rollup-android-arm64": "4.17.2",
2030
-                "@rollup/rollup-darwin-arm64": "4.17.2",
2031
-                "@rollup/rollup-darwin-x64": "4.17.2",
2032
-                "@rollup/rollup-linux-arm-gnueabihf": "4.17.2",
2033
-                "@rollup/rollup-linux-arm-musleabihf": "4.17.2",
2034
-                "@rollup/rollup-linux-arm64-gnu": "4.17.2",
2035
-                "@rollup/rollup-linux-arm64-musl": "4.17.2",
2036
-                "@rollup/rollup-linux-powerpc64le-gnu": "4.17.2",
2037
-                "@rollup/rollup-linux-riscv64-gnu": "4.17.2",
2038
-                "@rollup/rollup-linux-s390x-gnu": "4.17.2",
2039
-                "@rollup/rollup-linux-x64-gnu": "4.17.2",
2040
-                "@rollup/rollup-linux-x64-musl": "4.17.2",
2041
-                "@rollup/rollup-win32-arm64-msvc": "4.17.2",
2042
-                "@rollup/rollup-win32-ia32-msvc": "4.17.2",
2043
-                "@rollup/rollup-win32-x64-msvc": "4.17.2",
2028
+                "@rollup/rollup-android-arm-eabi": "4.18.0",
2029
+                "@rollup/rollup-android-arm64": "4.18.0",
2030
+                "@rollup/rollup-darwin-arm64": "4.18.0",
2031
+                "@rollup/rollup-darwin-x64": "4.18.0",
2032
+                "@rollup/rollup-linux-arm-gnueabihf": "4.18.0",
2033
+                "@rollup/rollup-linux-arm-musleabihf": "4.18.0",
2034
+                "@rollup/rollup-linux-arm64-gnu": "4.18.0",
2035
+                "@rollup/rollup-linux-arm64-musl": "4.18.0",
2036
+                "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0",
2037
+                "@rollup/rollup-linux-riscv64-gnu": "4.18.0",
2038
+                "@rollup/rollup-linux-s390x-gnu": "4.18.0",
2039
+                "@rollup/rollup-linux-x64-gnu": "4.18.0",
2040
+                "@rollup/rollup-linux-x64-musl": "4.18.0",
2041
+                "@rollup/rollup-win32-arm64-msvc": "4.18.0",
2042
+                "@rollup/rollup-win32-ia32-msvc": "4.18.0",
2043
+                "@rollup/rollup-win32-x64-msvc": "4.18.0",
2044 2044
                 "fsevents": "~2.3.2"
2045 2045
             }
2046 2046
         },
@@ -2277,9 +2277,9 @@
2277 2277
             }
2278 2278
         },
2279 2279
         "node_modules/tailwindcss/node_modules/postcss-selector-parser": {
2280
-            "version": "6.0.16",
2281
-            "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz",
2282
-            "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==",
2280
+            "version": "6.1.0",
2281
+            "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz",
2282
+            "integrity": "sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==",
2283 2283
             "dev": true,
2284 2284
             "dependencies": {
2285 2285
                 "cssesc": "^3.0.0",

+ 2
- 2
resources/views/livewire/company/service/connected-account/list-institutions.blade.php Visa fil

@@ -23,9 +23,9 @@
23 23
                             {{ $institution->name }}
24 24
                         </h3>
25 25
 
26
-                        @if($institution->getLastImportDate())
26
+                        @if($institution->latestImport)
27 27
                             <p class="connected-account-section-header-description text-sm leading-6 text-gray-500 dark:text-gray-400">
28
-                                {{ __('Last updated') }} {{ $institution->getLastImportDate() }}
28
+                                {{ __('Last updated') }} {{ $institution->latestImport->last_imported_at->diffForHumans() }}
29 29
                             </p>
30 30
                         @endif
31 31
                     </div>

Laddar…
Avbryt
Spara