That's because you cannot do what you expect to happen, at least as far as I know. Looking at your code you're working with avatars. Something most apps do is just show the image if there is one uploaded for the user (with tags).
Jan 17, 2019
4
Level 3
LARAVEL NOVA: File field is empty on edit page
Avatar::make('Avatar')->store(function ($request) {
return [
'avatar' => basename($request->avatar->store('public/users'))
];
})->displayUsing(function ($value) {
return 'users/' . $value;
})->prunable(),
I have this field in User resource. Everything works fine except edit page: it says that no file is uploaded even if it is.
What am I missing?
Please or to participate in this conversation.