redsquirrelstudio / laravel-backpack-import-operation

An operation to make configurable imports for your CRUDs using the Backpack api you know and love
Other
17 stars 1 forks source link

Class "Backpack\Generators\Services\BackpackCommand" not found #17

Closed arb362 closed 9 months ago

arb362 commented 9 months ago

I was just deploying this to my staging environment and noticed that it was failing because the ImportColumnBackpackCommand extends a class from the backpack/generators package. That could be easily fixed by requiring the package or.....I wondered if in order to prevent requiring backpack/generators in a production environment it would be reasonable to only register the command in your ImportOperationProvider if the Class for the BackpackCommand existed. i.e. if (class_exists('\Backpack\Generators\Services\BackpackCommand')) { $this->commands($this->commands); }

redsquirrelstudio commented 9 months ago

Hi @arb362

Thank you for the fix suggestion, this has been implemented in v1.6.7

Many thanks!