Skip to content

🔐 Auth Documentation

RawDigs authentication combines Laravel Sanctum sessions, API tokens, and a Filament admin guard on top of the Accounts and Creators contexts. Use this section to understand how identity and access hang together.


📘 Core Guides

Guide What you’ll learn
Authentication Overview Guards, surfaces, and how Sanctum ties the SPA, API, and Filament together.
Roles & Permissions Organization and artist scopes using Spatie Laravel-Permission.
Roles & Permissions Schema Map Database tables linking Accounts entities with Spatie roles, permissions, and team scoping.
Auth Entity Map High-level view of how Spatie roles/permissions interact with Accounts and Creators memberships.

  • docs/commands/context-make.md — Generate scaffolding for new context resources.
  • docs/contexts/accounts/index.md — Accounts context (source of team-scoped memberships).
  • docs/contexts/media/index.md — Media pipeline used by avatars and artwork.

🔁 Flow Diagrams

Flow When to reference
Authentication Flows Sequence diagrams for the SPA session, Sanctum tokens, and Filament dashboard.

Pattern Notes

  • Every major topic gets a concise overview page plus deep dives for diagrams or procedure-heavy content.
  • Flow galleries live in their own folder so you can add, remix, or embed diagrams elsewhere without bloating narrative guides.
  • Replicate this layout (Overview table → Flow table → Pattern notes) for other documentation domains to keep navigation consistent.