krgm.so-manager-dev.com/app/Services/FileService.php
Your Name 71986a2df1
All checks were successful
Deploy preview (main_go) / deploy (push) Successful in 14s
feat: 实装SHJ-6/9/10バッチ処理システム
- SHJ-9: 日次売上集計処理
- SHJ-10: 年次月次売上集計処理
- SHJ-6: サーバ死活監視処理
- 各種モデルサービスコマンド追加
- earnings_summary, device, hardware_check_log, print_job_log テーブル用SQL追加
2025-08-22 19:44:06 +09:00

37 lines
721 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Services;
use Illuminate\Http\UploadedFile;
/**
* ファイル入出力サービス
* - 旧UtilsのuploadFile互換ラッパー
*/
class FileService
{
/**
* 画像ファイルを保存(旧互換)
*
* @param UploadedFile $file
* @param string|null $fileNamePrefix
* @return string|false 保存ファイル名
*/
public function uploadImage(UploadedFile $file, ?string $fileNamePrefix = null)
{
return \App\Utils::uploadFile($file, $fileNamePrefix);
}
/**
* 画像URL取得旧互換
*/
public function getImageUrl(string $filename = ''): string
{
return \App\Utils::getImageUrl($filename);
}
}