Skip to content

Fix fatal stale imports left by the Filament 4 resource restructure#135

Open
byjujohn wants to merge 2 commits into
rmsramos:mainfrom
byjujohn:filament-4
Open

Fix fatal stale imports left by the Filament 4 resource restructure#135
byjujohn wants to merge 2 commits into
rmsramos:mainfrom
byjujohn:filament-4

Conversation

@byjujohn

Copy link
Copy Markdown

The Filament 4 restructure moved ActivitylogResource into a nested namespace (Resources\ActivitylogResource\ActivitylogResource), but four files still import the old FQCN, which is now a namespace rather than a class — so booting any app with the plugin fatals with Class "Rmsramos\Activitylog\Resources\ActivitylogResource" not found.

This PR:

  • fixes the imports in Pages/ListActivitylog, Pages/ViewActivitylog, and ActivitylogRelationManager
  • migrates ActivitylogRelationManager to the Filament 4 APIs it was missed by: form(Schema): Schema, ->recordActions(), and the unified Filament\Actions\ViewAction
  • swaps the removed Filament\Tables\Actions\Action for Filament\Actions\Action in ActivityLogTimelineTableAction
  • widens illuminate/contracts to allow ^13.0 (no code changes were needed under Laravel 13)

Running in production-shaped test suites (1,800+ tests) against Filament 4.11 and 5.6 on Laravel 12 and 13.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ

byjujohn and others added 2 commits July 9, 2026 20:36
… imports and unified Actions namespace

Upstream main's F4 restructure moved ActivitylogResource into a nested
namespace but left the Pages, RelationManager, and timeline action
importing the old FQCN (fatal: class not found at boot). Also migrates
the RelationManager form() to the Schema signature and table ->actions()
to ->recordActions(), and swaps removed Filament\Tables\Actions classes
for the unified Filament\Actions namespace.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant