Welcome Guest, Not a member yet? Register   Sign In
How does $allowedFields protect against mass assignment vulnerabilities?
#5

@libsys Your customization is interesting. 
But in my opinion, if an Entity knows assignable fields, you don't need to use allowedFields in CI4 Model.
It seems you can add protection in your Entity (e.g., to add $fillable in the Entity) and disable the protection in Model.
That will be simpler.
Reply


Messages In This Thread
RE: How does $allowedFields protect against mass assignment vulnerabilities? - by kenjis - 09-06-2024, 04:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB