getRootPath() . $upload_path; $filename = uniqid() . '.' . $file->extension(); $upload_filename = '/' . $upload_path . '/' . $filename; return [$file->move($path, $filename), $file, $upload_filename]; } }