Undefined property User$id

does anyone knows why these errors are appearing ? My project suddently started to have this yellow errors in the fillament resource files
No description
3 Replies
Richard Pinewood
Richard PinewoodOP3mo ago
i also got yellow errors in the migration files but i just did compooser install and everything was just fine
Kyrch
Kyrch3mo ago
use phpdocs in the user model class and stuff like: @property int $id
Dennis Koch
Dennis Koch3mo ago
Because those properties don’t exist on the model. They are accessed via magic methods. You can use something like Laravel-ide-helper

Did you find this page helpful?