You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but not if you have guarded the remember_token as per the original example!
This also works, but you have to add all attributes again, and you can't mix and match with guarded:
protected$fillable = [
'location',
];
Steps To Reproduce
Add latitude and longitude columns to the users table in a fresh Laravel installation, and paste the codes above, and tinker with the model to see the behaviour.
The text was updated successfully, but these errors were encountered:
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
laravel new bug-report --github="--public"
Please do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.
Laravel Version
11.1.0
PHP Version
8.3.3
Database Driver & Version
No response
Description
If you have a user model like this:
This doesn't work and completely ignores
location
:This works:
Interestingly,
fill
works fine with this:but not if you have guarded the
remember_token
as per the original example!This also works, but you have to add all attributes again, and you can't mix and match with
guarded
:Steps To Reproduce
Add
latitude
andlongitude
columns to theusers
table in a fresh Laravel installation, and paste the codes above, andtinker
with the model to see the behaviour.The text was updated successfully, but these errors were encountered: