whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
788 stars 228 forks source link

Undefined property: {Layout}::$exists #402

Closed Nks closed 1 year ago

Nks commented 1 year ago

After updating Laravel to v9.35.0 I got the error:

vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
:467

The "error" coming from Laravel Framework by this method was added recently.

Possible fix:

Add the following variables to class "Whitecube\NovaFlexibleContent\Layouts\Layout":

protected $exists = false;

protected $wasRecentlyCreated = false;
1stevengrant commented 1 year ago

seeing this one too

Nks commented 1 year ago

@1stevengrant, you can use fork as a temporary fix:

Add

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Nks/nova-flexible-content.git"
        }
    ],

to your composer.json file and add

"whitecube/nova-flexible-content": "dev-develop", as the dependency.

voidgraphics commented 1 year ago

Just tagged v1.0.5 with your fix, thanks!