Open sirikkoster opened 4 years ago
What's the status on this modification?
Hi ! same issue here ! thx :)
Ah just ran into this myself. Would love to see readonly support as noted by @sirikkoster!
Hello, thanks for the issue. Feel free to add a pull request. I can merge it asap.
Not pretty but a workaround:
NovaBelongsToDepend::make('Client')
->options(\App\Models\Client::all())
->hideWhenUpdating(),
BelongsTo::make("Client")->readonly(function ($request) {
return $request->isUpdateOrUpdateAttachedRequest();
})->hideWhenCreating()->hideFromIndex(),
same issue 😢
Laravel Version: ^6.0 Nova Version: 2.12.0 Nova belongsto Depend: ^2.0