yusufgenc/filament-api-forge
Expose Filament Resources as REST APIs automatically—no Sanctum. Hash-based API keys with scopes, per-resource access control, rate limiting, IP restrictions, Spatie Query Builder filtering/sorting, and auto-generated OpenAPI + public Swagger docs.
HasApi trait) to auto-generate APIs, reducing boilerplate.forgeApiRequest).forge_ prefix), simplifying auth for API consumers (e.g., mobile apps, third-party services).HasApi are auto-discovered. Compatible with Laravel 10+ and Filament 5.x.?filter[status]=active), but customization requires resource-level overrides.forge_) are secure but require careful key rotation handling. No built-in token revocation (relies on Filament’s API key management)./reports) be integrated without manual routes?PostResource, UserResource).composer require yusufgenc/filament-api-forge.HasApi trait to a single resource (e.g., PostResource) and test auto-generated endpoints.forge_ tokens incrementally.PageResource).forge_ tokens.filament_api_forge_keys table in backups.filament:debug) and Laravel’s telescope for API request inspection.throttle middleware.show operations) using Laravel’s cache.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| API Key Leak | Unauthorized access to resources | Rotate keys via Filament UI; monitor usage logs. |
| Rate Limit Exhaustion | API throttling for legitimate users | Adjust limits per-resource; implement fallback queues. |
| Filament DB Corruption | Lost API keys/access control | Regular DB backups; test restore procedures. |
| Package Update Breaking Change | API endpoints fail | Test updates in staging; roll back if needed. |
| High Traffic Spikes | Performance degradation | Load test with Laravel Forge/Horizon; scale workers. |
HasApi trait, auth token scope).artisan commands (e.g., filament:debug) for troubleshooting.How can I help you explore Laravel packages today?