# Plan — 070 Workspace create: ensure creator membership ## Tech - Laravel 12 - Filament v5 + Livewire v4 ## Approach 1. Hook into the Workspaces resource create page lifecycle (CreateRecord) to run post-create logic. 2. Create (or ensure) a `workspace_memberships` row for the creator with role `owner`. 3. Set the created workspace as the current workspace in `WorkspaceContext`. 4. Add a Pest regression test that creates a workspace via the Filament create page and asserts membership exists. ## Files - `app/Filament/Resources/Workspaces/Pages/CreateWorkspace.php` - `tests/Feature/Workspaces/CreateWorkspaceCreatesMembershipTest.php`