Closed kulcsarbalazs closed 4 years ago
I found the issue for us was that 'Nova::resources' included resources from other packages we were using that caused different issues (eg: Bolechen\NovaActivitylog\Resources\Activitylog, Vyuldashev\NovaPermission\Role, Vyuldashev\NovaPermission\Permission).
Quick dirty fix was to simply remove any resources that aren't prefixed with 'App\Nova' in our case
$resources = collect(Nova::$resources);
// only allow '\App\Nova' resources
$filtered = $resources->filter(function ($value, $key) {
if (substr($value, 0, 8) == 'App\Nova') {
return true;
}
});
$resources = collect($filtered->all());
This should be fixed by #23 which I’ll release soon.
In the resource of the bolechen/nova-activitylog package has static $model = null. This caused this error:
This correction works in ImportController.php:44