parental icon indicating copy to clipboard operation
parental copied to clipboard

fix: avoid mass assignment

Open jaulz opened this issue 11 months ago • 2 comments

I would like to avoid setting $fillable at all. This approach would set attributes one by one and does the same thing without causing any exception in strict mode.

jaulz avatar Jan 16 '25 14:01 jaulz

Isn't it already possible to unguard all models at the application-level? I feel like that's a decision that should be done at the application-level. Don't see why we should bypass what's defined in the app.

tonysm avatar Apr 15 '25 16:04 tonysm

@tonysm I think the getChildModel is a method that shouldn't depend on the application settings. It should just work in every Laravel application the same way shouldn't it?

jaulz avatar Apr 17 '25 14:04 jaulz