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

The system cannot find the path specified. - Laravel Model #33

Open
anburocky3 opened this issue May 19, 2024 · 3 comments
Open

The system cannot find the path specified. - Laravel Model #33

anburocky3 opened this issue May 19, 2024 · 3 comments

Comments

@anburocky3
Copy link

image

// app/Models/BasicInformation.php
class BasicInformation extends Model
{
    use SoftDeletes, HasFactory;

    protected $fillable = [
        'name',
        'gender',
        'dob',
        'marital_status',
        'profile_bio',
        'user_id',
        'children',
        'children_living_status',
        'profile_created_by',
    ];

    protected $casts = [
        'dob' => 'datetime',
    ];

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }
}

but it can't able to generate the types.

@7nohe
Copy link
Owner

7nohe commented May 19, 2024

@anburocky3
Is there a public repository of the reproducible project?
Additionally, it would be helpful if you could provide detailed information about the runtime environment. I have only tested it on a Mac, so it might fail on other environments like Windows.
If I have more detailed information, I might be able to make the necessary fixes.

@7nohe
Copy link
Owner

7nohe commented May 19, 2024

Basically, it should work fine as long as it's running inside a Linux-based Docker container.

@anburocky3
Copy link
Author

Basically, it should work fine as long as it's running inside a Linux-based Docker container.

I'm running laravel project inside laragon. Not using docker for now.

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

2 participants