-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After update laravel to 6.18.35, i got error in model that has $guarded attribute #2078
Comments
PRs welcome 👍 I might take a closer look but probably on Sunday. Thanks! |
Same issue here. i have to downgrade to laravel/framework v6.18.32 with But be patient this release has the vulnerability wich is fixed with the v6.18.35 and actual not working with this package laravel/framework (v6.18.32)
----------------------------
* [CVE-NONE-0001][]: Guard bypass in Eloquent models
[CVE-NONE-0001]: https://blog.laravel.com/security-release-laravel-61834-7232 |
I had the same problem here. I fixed the version. |
Edit: I noticed what I posted below gets mentioned on the PR. Leaving it in as-is, but it is known. To continue where @jannnnnn left off, the exact fix that causes this error, is mentioned on the 6.18.35 / 7.25.0 release announcement.
Since this involves a security fix that fixes some protected JSON assignments (like An easy fix is also suggested:
|
Description:
Recently, was merged laravel/framework#33777. Since then, I'm getting an error when I try to use the create method with a model that has $guarded attribute
Steps to reproduce
Expected behaviour
It should create a object with property 'foo' in database
Actual behaviour
PHP Error: Call to a member function compileColumnListing() on null in /home/project/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php on line 136
The text was updated successfully, but these errors were encountered: