Skip to content

[BUG] backpack:build copy found models in other directories (e.g. app/packages) into app/Models .  #105

@pxpm

Description

@pxpm

Bug report

What I did:

I have some local packages (Models, Controllers etc) inside app/packages folder.

When running php artisan backpack:build it find those models too. Problem is not finding them, is the fact the backpack copy them into app/Models folder.

This makes me also think we should have some key in config where we could add an array of locations to ignore searching for models.

What I expected to happen:

Atmost, find the models and add the CrudTrait. Never copy them!

What happened:

My models were copied into app/Models

What I've already tried to fix it:

Backpack, Laravel, PHP, DB version:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions