dcasia / nova-inline-morph-to

A Laravel Nova field for displaying morphTo relationship inline.
MIT License
33 stars 15 forks source link

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

Closed luke0x90 closed 1 year ago

luke0x90 commented 4 years ago

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