--> Full Issue description in the text file in comments
Brief:
What I am trying to do:
- Import a CSV into a Filament resource via ImportAction (queued ImportCsv job), updating existing DailyGift rows by day.
What I did:
- Implemented a Filament Importer with columns (day, amount, coin_id).
- resolveRecord() returns the DailyGift by day or throws RowImportFailedException if missing.
- imports row is created with user_id = 1.
- Admin panel uses the admin guard. App\Models\Admin::find(1) returns a model; App\Models\User::find(1) is null.
- Queue driver: database; using queue:work.
My issue/the error:
- The ImportCsv job keeps failing and retrying with: Illuminate\Auth\SessionGuard::login(): Argument #1 ($user) must be of type Authenticatable, null given
- Stack shows Filament tries to log in the initiating user, but it resolves to null at runtime. This suggests the job authenticates via the default web/users provider instead of the admin/admins provider, so retrieveById(1) returns null. I can’t globally switch the default guard (other jobs rely on it).