Skip to content

infinite loop when casting #3

@ZARk-be

Description

@ZARk-be

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

];

}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions