dcasia / nova-inline-morph-to

A Laravel Nova field for displaying morphTo relationship inline.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined method Laravel\Nova\ResourceToolElement::fill()

luke0x90 opened this issue · comments

commented

When adding inline morph to User, all resources can be created as intended (eg Teachers/Admins) except for Students.

 InlineMorphTo::make('Userable')
                ->types( [
                        Individual::class,
                        Student::class,
                        Teacher::class,
                        SchoolAdmin::class,
                        Admin::class,
                    ])
                ->default(Student::class)->hideFromIndex()->hideFromDetail(),

Image of Error