Skip to content

RestfulModel::$immutableAttributes are definitely immutable #17

@GiacomoP

Description

@GiacomoP

Hello again!

I think the comment for this attribute is a bit misleading. Specifying attributes in this array will definitely make them immutable. Even updating a model via own code will throw the Exception, at least when doing a ->save(). Not sure if you meant that attributes in the array can be modified by code (like, they're not constants), but they can't be written to database.

* API routes of update and put. They can still be updated internally by Laravel, and your own code.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions