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
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?
We're closing this issue because it's inactive, already solved, old, or not relevant anymore. Feel free to open up a new issue if you're still experiencing this problem.
Laravel Version
10.41
PHP Version
8.3
Database Driver & Version
mysql
Description
Hi everyone
I found a weird bug
I tried to setup a very simple model, with a relation between two tables like this :
So I tried to get some data with :
And when I do it, it crash with
Warning: require_once(/var/www/html/int.php): Failed to open stream: No such file or directory
I actually found what is wrong in
vendor/illuminate/database/Eloquent/Concerns/HasAttributes.php::878
And now it work, because actually it doesn't make sens to find a specific class to cast a int ?
Am I wrong somewhere ?
Complete error log : (I'm not inside a laravel framework but I use
illuminate/database
package)Thanks in advance
Steps To Reproduce
Install
illuminate/database
with composerUse a relation with a int prop
The text was updated successfully, but these errors were encountered: