fixed type

This commit is contained in:
Cüneyt Şentürk 2021-01-10 14:28:22 +03:00
parent 39f4a1913c
commit 401a8ca8ea
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -10,7 +10,7 @@ return [
'group' => 'sales', // controller folder name for permission and route 'group' => 'sales', // controller folder name for permission and route
'route' => [ 'route' => [
'prefix' => 'invoices', // core use with group + prefix, module ex. estimates 'prefix' => 'invoices', // core use with group + prefix, module ex. estimates
'paramater' => 'invoice', // sales/invoices/{parameter}/edit 'parameter' => 'invoice', // sales/invoices/{parameter}/edit
//'create' => 'invoices.create', // if you change route, you can write full path //'create' => 'invoices.create', // if you change route, you can write full path
], ],
'permission' => [ 'permission' => [
@ -33,7 +33,7 @@ return [
'group' => 'purchases', 'group' => 'purchases',
'route' => [ 'route' => [
'prefix' => 'bills', 'prefix' => 'bills',
'paramater' => 'bill', 'parameter' => 'bill',
//'create' => 'bilss.create', //'create' => 'bilss.create',
], ],
'permission' => [ 'permission' => [