You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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./** * Determine if accessing missing attributes is disabled. * * @return bool */ public static function preventsAccessingMissingAttributes() { return static::$modelsShouldPreventAccessingMissingAttributes; }
The text was updated successfully, but these errors were encountered: