Add Document/Transaction/Contact types to the config
This commit is contained in:
@ -28,7 +28,7 @@ class Document extends FormRequest
|
||||
{
|
||||
$type = $this->request->get('type', Model::INVOICE_TYPE);
|
||||
|
||||
$type = Str::replaceFirst('-', '_', $type);
|
||||
$type = config("type.{$type}.route_parameter");
|
||||
|
||||
// Check if store or update
|
||||
if ($this->getMethod() == 'PATCH') {
|
||||
|
Reference in New Issue
Block a user