mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-20 02:17:09 +00:00
docs(database-patterns): add critical note on mass assignment protection for new columns
This commit is contained in:
1 parent
704ddf2968
commit
231ad85e15
2 files changed
+24
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user