feat(admin): complete admin management and add edit functionality
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user