fixed type
This commit is contained in:
parent
39f4a1913c
commit
401a8ca8ea
@ -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') {
|
||||||
|
@ -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' => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user