Update Dashboard Layout

This commit is contained in:
Firman Herdiansyah
2025-02-05 13:36:33 +07:00
parent f38d518f96
commit 99e99fa2e6
96 changed files with 2817 additions and 414 deletions

View File

@@ -0,0 +1,20 @@
/**
* Moves the attached file to the server.
*
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
*
* @return string
*/
protected function moveFile($file)
{
if (!$file->isValid()) {
return '';
}
$fileName = sprintf('%s.%s', uniqid(), $file->getClientOriginalExtension());
$destinationPath = config('laravel-code-generator.files_upload_path','uploads');
$path = $file->move($destinationPath, $fileName);
return $destinationPath . '/' . $fileName;
}