Closed
Description
- Laravel Version: 11.45.1
- Nova Version: 5.7.2
- PHP Version: 8.2
- Database Driver & Version: Mysql 8
- Operating System and Version: MAC OS
- Browser type and version: Chrome 137
- Reproduction Repository: https://github.com/Fayne/laravel-nova-issues-reproduce
Description:
Slug can still be edited on the UI when readonly is set to true.
But I did a test and the backend logic is correct. Even if the slug field is edited, the backend does not save it.
Detailed steps to reproduce the issue on a fresh Nova installation:
Slug::make('Slug')->from('name')->readonly(function () use ($request) {
return $request->isUpdateOrUpdateAttachedRequest();
}),