Nova Repeater field doesn't accept Fluent #5921
Replies: 3 comments 1 reply
-
Fixing this issue would also allow for using repeater field in the action form? If yes, that would be really, really nice! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is the problem solved? I have the same problem. @salvisb what solution did you make? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Released with Laravel Nova 5.0.0 Feel free to open up a new issue if you're still experiencing this problem on the latest version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I can't use the new Repeater field with the Fluent class, due to it requiring a type of eloquent model.
Error message:
Laravel\Nova\Fields\Repeater\Presets\JSON::get(): Argument #2 ($model) must be of type Illuminate\Database\Eloquent\Model, Laravel\Nova\Support\Fluent given, called in /var/www/html/vendor/laravel/nova/src/Fields/Repeater.php
Detailed steps to reproduce the issue on a fresh Nova installation:
I am using the https://github.com/outl1ne/nova-settings package due to the customer needing to set settings on the fly that can change often on the project globally.
Install the package.
Go to nova service provider
Go to the nova settings function
Add the following:
NovaSettings::addSettingsFields([ Repeater::make('List of test variables') ->repeatables([ Text::make('Test Variable', 'test_var'), ]), ], [], 'Some Setting', 'some_setting');
Beta Was this translation helpful? Give feedback.
All reactions