Merge pull request #1848 from burakcakirel/wrong-company-details

Wrong company details on invoice create page
This commit is contained in:
Cüneyt Şentürk 2021-02-11 16:22:16 +03:00 committed by GitHub
commit 95bcc9c586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
namespace App\View\Components\Documents\Form;
use App\Abstracts\View\Components\DocumentForm as Component;
use Illuminate\Support\Str;
use App\Models\Common\Company as Model;
class Company extends Component
{
@ -14,7 +14,7 @@ class Company extends Component
*/
public function render()
{
$company = user()->companies()->first();
$company = Model::find(session('company_id'));
$inputNameType = config('type.' . $this->type . '.route.parameter');