laravel-typegen icon indicating copy to clipboard operation
laravel-typegen copied to clipboard

The system cannot find the path specified. - Laravel Model

Open anburocky3 opened this issue 9 months ago • 3 comments

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.

anburocky3 avatar May 19 '24 10:05 anburocky3