Skip to content

The --model-path option is not working as expected. #45

@SpitsAdmin

Description

@SpitsAdmin

Problem

I have a few models that are not in you regular app/Models folder but boilerplate/app/Models. When running the typegen npm command with these options: npm run typegen --ziggy --model-path boilerplate/app/Models it doesn't generate the models from the appropriate boilerplate folder.

It seems to be checking the models in App/Models/Boilerplate/Models when I manually run the php artisan model:show Boilerplate/Models/Role --json command. this is the error i get when running the typegen command.

Image

Manually running the model:show command error:

Image

Prefered Solution

Rather than checking the models in App/Models/* check them in Boilerplate/Models/*.

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