我有这样的要求:
$path = storage_path('testing/unnamed.png');
$original_name = 'unnamed';
$mime_type = 'image/png';
$size = 2192;
$error = null;
$test = true;
$file = new UploadedFile($path, $original_name, $mime_type, $size, $error, $test);
$response = $this->call('POST', 'games', [
'name' => 'TEST321',
'category' => 'test',], [], ['picture' => $file], []);
并且存储图像如何模拟文件系统?
这也没有通过 laravel mime 验证mimes:jpeg,bmp,png
......有人知道如何解决它吗?