moonshine-software/demo-project

Lazy loading error on MoonShineUserResource

k-rustemuly opened this issue · 2 comments

Attempted to lazy load [moonshineUserRole] on model [MoonShine\Permissions\Models\MoonshineUser] but lazy loading is disabled.
по ссылке http://127.0.0.1:8000/admin/resource/moon-shine-user-resource/index-page
добавил в MoonShineUserResource:

    protected array $with = ['moonshineUserRole'];

ошибка исчезла

lee-to commented

Сделаешь пр?

Сделаешь пр?

ok