whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
778 stars 230 forks source link

Call to undefined method preventsAccessingMissingAttributes() #495

Closed cv-chameleon closed 4 months ago

cv-chameleon commented 6 months ago

With the latest Laravel 10.40 release, I get following error in my Layout classes:

Call to undefined method App\Nova\Flexible\Layouts\BannerLayout::preventsAccessingMissingAttributes()

It seems that the class Whitecube\NovaFlexibleContent\Layouts\Layout.php should implement this method, just like it's present on the Model classes.

` /**

cv-chameleon commented 5 months ago

For people who also have this issue. In the meantime I made a class "AbstractLayout" and implemented the method "preventsAccessingMissingAttributes" there, exactly the same as in the Illuminate\Database\Eloquent\Model class. I then extended my Layout classes from this AbstractLayout class.

wize-wiz commented 5 months ago

@cv-chameleon Well that should not suppose to happen, we're not the only experiencing this problem, see PR here.

Are you planning to do a PR?

mabdullahsari commented 5 months ago

See #499.