Add Document/Transaction/Contact types to the config

This commit is contained in:
Burak Çakırel
2021-01-05 23:22:38 +03:00
parent 1deff6e5b4
commit 3aa94bc9e2
14 changed files with 130 additions and 147 deletions

View File

@ -16,7 +16,7 @@ class Company extends Component
{
$company = user()->companies()->first();
$inputNameType = Str::replaceFirst('-', '_', $this->type);
$inputNameType = config("type.{$this->type}.route_parameter");
return view('components.documents.form.company', compact('company','inputNameType'));
}