Skip to content
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

infinite loop when casting #3

Open
ZARk-be opened this issue Dec 10, 2022 · 0 comments
Open

infinite loop when casting #3

ZARk-be opened this issue Dec 10, 2022 · 0 comments

Comments

@ZARk-be
Copy link

ZARk-be commented Dec 10, 2022

Hello

I'm getting this error when trying to cast in my model

ERROR Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames in vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php on line 73.

i don't have any classes called Language or Country or Currency
Only thing is the model i'm using has the following fields

`class PeopleSpokenLanguage extends Model
{
use HasFactory;

protected $casts = [
    'language' => Language::class,
    'accent' => Country::class

];

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant