some changes..

This commit is contained in:
Cüneyt Şentürk
2021-01-09 23:41:01 +03:00
parent 67fca4d5b9
commit 2455ec5d7e
7 changed files with 40 additions and 24 deletions

View File

@ -28,7 +28,7 @@ class Document extends FormRequest
{
$type = $this->request->get('type', Model::INVOICE_TYPE);
$type = config("type.{$type}.route_parameter");
$type = config('type.' . $type . '.route_parameter');
// Check if store or update
if ($this->getMethod() == 'PATCH') {