Open mattjamesvogt opened 3 years ago
I ended up having the same issue. I wonder if it's version related or am I missing something.
NovaBelongsToDepend::make('Customer')
->options(\App\Models\Customer::all())
->rules('required'),
NovaBelongsToDepend::make('Project')
->optionsResolve(function ($customer) {
return $customer->project;
})
->dependsOn('customer')
->rules('required'),
today test this ok
Works here with laravel/nova 3.31.0 and orlyapps/nova-belongsto-depend 3.0.2.
Thanks for creating this, looks like a great repo!
I can't get it to work with 2 BelongsTo fields.
Order User Company
Order has belongsTo for both Company and User.
Have set it up like this:
User field never shows, even after selecting a company
Thanks!