mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
commit
5f3668d660
@ -123,9 +123,8 @@ class UploadController extends AdminController
|
|||||||
$isImageUser = FilesFilesEntryModel::query()->where('created_by_id', Auth::id())
|
$isImageUser = FilesFilesEntryModel::query()->where('created_by_id', Auth::id())
|
||||||
->where('name', $filename)->first();
|
->where('name', $filename)->first();
|
||||||
if ($isImageUser != null) {
|
if ($isImageUser != null) {
|
||||||
$image->make(Storage::path('images/' . $filename))
|
WaterMark::make(Storage::path('images/' . $filename))->rotate(90)
|
||||||
->rotate(90)
|
->save(app_storage_path() . '/files-module/local/images/' . $filename);
|
||||||
->publish('app/default/files-module/local/images/' . $filename);
|
|
||||||
return response()->json(['status' => 'success']);
|
return response()->json(['status' => 'success']);
|
||||||
}
|
}
|
||||||
return response()->json(['status' => 'error']);
|
return response()->json(['status' => 'error']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user