update-admin-ui

This commit is contained in:
hayatie
2024-04-21 12:30:02 +08:00
parent 325b797fc0
commit 842f4a2386
8 changed files with 28 additions and 20 deletions
@@ -11,7 +11,7 @@ class DeleteController extends Controller
{
public function __invoke ($id)
{
$nominee = Nominee::find($id);
$nominee = Nominee::findOrFail($id);
Util::deleteImage($nominee->image);
$nominee->delete();