Currently, it gives Failed to generate {Model}. Skipping... error message when running typegen for models with non-default namespace, meaning not App\Models, as shown below:
This becomes an issue when the repository uses an architecture such as modular monolith. Namespace under module can be like App/{Module}/Models or Custom/{Module}/Models, etc.
Expected Behavior
Types of models under non-default namespace can be exported as models under default.
Remarks
This change should not affect types of models under default namespace.
Issue
Currently, it gives
Failed to generate {Model}. Skipping...
error message when running typegen for models with non-default namespace, meaning notApp\Models
, as shown below:This becomes an issue when the repository uses an architecture such as modular monolith. Namespace under module can be like
App/{Module}/Models
orCustom/{Module}/Models
, etc.Expected Behavior
Types of models under non-default namespace can be exported as models under default.
Remarks
This change should not affect types of models under default namespace.