Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/app/Traits/HasMaskImage.php
Назад
<?php namespace App\Traits; use App\Helper\Common; use App\Models\StorageSetting; use Exception; trait HasMaskImage { private function generateMaskedImageAppUrl($path): string { // Return local or s3 url for local storage and do not generate if (!in_array(config('filesystems.default'), StorageSetting::S3_COMPATIBLE_STORAGE)) { return asset_url_local_s3($path); } $filePath = Common::encryptDecrypt($path) . '_masked.png'; try { return route('file.getFile', ['type' => 'image', 'path' => $filePath]); } catch (Exception $exception) { return config('app.url') . '/file/image/' . $filePath; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка