Skip to content

Commit a513671

Browse files
mhortulanusclaude
andcommitted
refactor: refine shop plugin models, migrations, resources and config
Comprehensive refinement of the shop package including: - Update all models with proper casts, relationships and table prefixing - Modernize all migration stubs with consistent naming and structure - Improve Filament resource forms, infolists and tables - Add tax rate minimum value validation (must be > 0) - Center-align orders count column in customer table - Add AddressObserver, InvoiceRelationManager and OrderRelationManager - Fix categoriable -> categorizable typo in migration - Update config with table prefix support - Fix RecordUserLogin to handle nullable userId Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b816834 commit a513671

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Jobs/RecordUserLogin.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class RecordUserLogin implements ShouldQueue
1313
* @param array<string, mixed>|null $inputs
1414
*/
1515
public function __construct(
16-
public int $userId,
17-
public string $type,
16+
public ?int $userId,
17+
public ?string $type,
1818
public ?string $url,
1919
public ?string $referrer,
2020
public ?array $inputs,
@@ -24,6 +24,10 @@ public function __construct(
2424

2525
public function handle(): void
2626
{
27+
if(!$this->userId) {
28+
return;
29+
}
30+
2731
$userModel = config('users.eloquent.user.model');
2832

2933
if (! $userModel || ! class_exists($userModel)) {

0 commit comments

Comments
 (0)