elfinder configs, application on edit fields fixed

This commit is contained in:
Mahri Ilmedova 2022-10-11 15:33:50 +05:00
parent 0176a43bdd
commit 26583c0ce1
2 changed files with 16 additions and 14 deletions

View File

@ -119,17 +119,6 @@ protected function setupCreateOperation()
{
CRUD::setValidation(ApplicationRequest::class);
$this->crud->addFields([
// [
// 'name' => 'account_id',
// 'type' => 'custom_select_account',
// 'label' => 'Account',
// 'entity' => 'account',
// 'model' => "App\Models\Business",
// 'model_2' => "App\Models\Company",
// 'attribute_business_1' => 'name',
// 'attribute_business_2' => 'surname',
// 'attribute_2' => 'name'
// ],
[ // SelectMultiple = n-n relationship (with pivot table)
'label' => "Account",
'type' => 'custom_select_account',
@ -161,6 +150,19 @@ protected function setupCreateOperation()
*/
protected function setupUpdateOperation()
{
$this->setupCreateOperation();
CRUD::setValidation(ApplicationRequest::class);
$this->crud->addFields([
[
'name' => 'state',
'label' => 'State',
'type' => 'select_from_array',
'options' => [
'new' => 'new',
'applied' => 'applied',
'approved' => 'approved',
'archive' => 'archive'
]
]
]);
}
}

View File

@ -10,7 +10,7 @@
| The dir where to store the images (relative from public).
|
*/
'dir' => ['uploads'],
'dir' => ['app/public'],
/*
|--------------------------------------------------------------------------
@ -26,7 +26,7 @@
| ]
*/
'disks' => [
// 'uploads',
'local',
],
/*