Wrong company details on invoice create page

This commit is contained in:
Burak Çakırel 2021-02-11 16:08:20 +03:00
parent 6d47a8c32a
commit df23031067
No known key found for this signature in database
GPG Key ID: 48FFBB7771B99C7C

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');