Closed Blindmikey closed 1 year ago
Attempted a clean install doing the following:
composer clear-cache
composer create-project laravel/laravel ./
(edit .env file to correct database settings)
php artisan db:wipe
composer config repositories.nova '{"type": "composer", "url": "https://nova.laravel.com"}' --file composer.json
(edited composer.json to include "laravel/nova": "^4.0" in "require")
composer update --prefer-dist
php artisan nova:install
php artisan nova:user
(logged in, confirmed nova is working)
composer require outl1ne/nova-settings
php artisan migrate
(updated app/Providers/NovaServiceProvider.php as per docs in this repo)
(reloaded nova in browser, see new settings menu - navigate to it)
(edit both the example setting fields "Some setting" and "A number" - clicked "Save settings" button)
Got the error above.
Found the issue - Laravel Nova 4.26.0 (released today) introduces the error. Rolling back to 4.25.1 (one release prior) resolves the issue.
Settings page was working well, but during development something happened and now when attempting to save any setting I get the error:
Call to undefined method stdClass::forceFill()
Any insight at all would be immensely helpful.
Stack trace: