outl1ne / nova-media-hub

This Laravel Nova package allows you to manage media and media fields.
MIT License
46 stars 22 forks source link

Call to a member function authorize() on null #82

Closed salarmotevalli closed 4 months ago

salarmotevalli commented 4 months ago

This error occurs when wyOptimizerChain() is used like here in documention

laravel/framework: "^11.0 outl1ne/nova-media-hub: "^2.0"

Tarpsvo commented 4 months ago

Heya! Fixed the docs. There was a race-condition issue with loading the ServiceProviders and assuming the tools() to be created when running a non-nova job queue in the background for example. The optimizer chain sadly has to be configured statically in AppServiceProvider. :(