Skip to content

Call to undefined method preventsAccessingMissingAttributes() #495

@cv-chameleon

Description

@cv-chameleon

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions