feat(admin): complete admin management and add edit functionality

This commit is contained in:
2026-08-20 11:56:46 +03:30
parent 0a0ee7ca5a
commit 3867350331
16 changed files with 1883 additions and 39 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ if (!function_exists('getUserFullName')) {
}
}
if (! function_exists('deleteFile')) {
function deleteFile(?File $file): void
function deleteFile(?\App\Models\File $file): void
{
if (! $file) {
return;
@@ -107,7 +107,7 @@ if (!function_exists('getFileUrl')) {
return null;
}
$file = File::find($fileId);
$file = \App\Models\File::find($fileId);
if (!$file){
return null;