mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-28 12:17:06 +00:00
fix: add mass assignment protection to models
Replace $guarded = [] with explicit $fillable whitelists across all models. Update controllers to use request->only($allowedFields) when assigning request data. Switch Livewire components to forceFill() for explicit mass assignment. Add integration tests for mass assignment protection.
This commit is contained in:
1 parent
48ba4ece3c
commit
67a4fcc2ab
20 files changed
+593
-95
No files matched your search
@@ -265,8 +265,6 @@ class Server extends BaseModel
|
||||
'server_metadata',
|
||||
];
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
use HasSafeStringAttribute;
|
||||
|
||||
public function type()
|
||||
|
||||
Reference in new issue
Block a user