Fast Log add tenant
This commit is contained in:
parent
6dd1e70e03
commit
117d7b0cae
1 changed files with 3 additions and 2 deletions
|
@ -61,8 +61,9 @@ class PublicController extends BaseController
|
|||
|
||||
public function returnWatermakeFile(\App\Helper\Image $imageHelper, \App\Helper\Access $accessHelper) {
|
||||
$tenant = Tenant::query()->where("id", "=", session("current_tenant_id"))->firstOrFail();
|
||||
$img = $imageHelper->getRawImage($tenant->watermark);
|
||||
$accessHelper->addById($tenant->watermark, $img, \App\Helper\Access::TYPE_CACHE);
|
||||
$imageModel = Image::query()->where("id", "=", $tenant->watermark)->firstOrFail();
|
||||
$img = $imageHelper->getRawImage($imageModel);
|
||||
$accessHelper->add($imageModel, $img, \App\Helper\Access::TYPE_CACHE);
|
||||
return $img->response();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue