From ab1b754a2eea6f10cdc300f4619e1a9d332576a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sat, 6 May 2023 00:33:50 +0300 Subject: [PATCH] duplicate query --- app/View/Components/Documents/Form/Company.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/View/Components/Documents/Form/Company.php b/app/View/Components/Documents/Form/Company.php index 5c48de171..02e03b457 100644 --- a/app/View/Components/Documents/Form/Company.php +++ b/app/View/Components/Documents/Form/Company.php @@ -3,7 +3,6 @@ namespace App\View\Components\Documents\Form; use App\Abstracts\View\Components\Documents\Form as Component; -use App\Models\Common\Company as Model; class Company extends Component { @@ -14,7 +13,7 @@ class Company extends Component */ public function render() { - $company = Model::find(company_id()); + $company = company(); $inputNameType = config('type.document.' . $this->type . '.route.parameter');