8000 get origin image default · LaravelResources/laravel-fileapi@d9f81d4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9f81d4

Browse files
author
FreedomKnight
committed
get origin image default
1 parent ec38033 commit d9f81d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/Api/FileController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function images($target, $param = null)
2525
],
2626
'data' => [
2727
'filename' => $filename,
28-
'path' => with(new FileApi("images/${target}/"))->get($filename)
28+
'path' => with(new FileApi("images/${target}/"))->get($filename, 'origin')
2929
]
3030
];
3131
}
@@ -37,7 +37,7 @@ public function videos($target, $param = null)
3737
event("video.${target}.created", [
3838
'param' => $param,
3939
'filename' => $filename,
40-
'path' => with(new FileApi("videos/${target}/"))->get($filename)
40+
'path' => with(new FileApi("videos/${target}/"))->get($filename, 'origin')
4141
]);
4242

4343
return [

0 commit comments

Comments
 (0)
0