docs(database-patterns): add critical note on mass assignment protection for new columns

This commit is contained in:
Andras Bacsai committed 2025-10-09 15:36:40 +02:00
1 parent 704ddf2968
commit 231ad85e15
2 files changed
+24

No files matched your search

+1
View File
@@ -160,6 +160,7 @@ class MyComponent extends Component
- Use database transactions for critical operations
- Leverage query scopes for reusable queries
- Apply indexes for performance-critical queries
- **CRITICAL**: When adding new database columns, ALWAYS update the model's `$fillable` array to allow mass assignment
### Security Best Practices
- **Authentication**: Multi-provider auth via Laravel Fortify & Sanctum