Generators icon indicating copy to clipboard operation
Generators copied to clipboard

backpack:crud SomeEntity throws an error in mongodb

Open pxpm opened this issue 3 years ago • 0 comments

Installed mongo db and backpack. Everything went smooth.

Tried to create a crud with php artisan backpack:crud Article.

image

It seems the error is raised on this line https://github.com/Laravel-Backpack/Generators/blob/1a773bf6e354b9d888282c1e18ab28fad4d7a01d/src/Console/Commands/CrudControllerBackpackCommand.php#L141

I think there is a bigger issue in general, and I am not sure we can easily fix it, since ALL mongodb models should extend Jenssegers\Mongodb\Eloquent\Model and not the regular Laravel\Model.

pxpm avatar Oct 07 '22 10:10 pxpm