search fix
This commit is contained in:
parent
d35e58ac72
commit
eb43b2d5d4
|
|
@ -33,7 +33,32 @@ class SubscriberCrudController extends CrudController
|
|||
*/
|
||||
|
||||
// TODO: remove setFromDb() and manually define Fields and Columns
|
||||
$this->crud->setFromDb();
|
||||
// $this->crud->setFromDb();
|
||||
$this->crud->setColumns([
|
||||
[
|
||||
'name' => 'email',
|
||||
'type' => 'email',
|
||||
'label' => 'Email'
|
||||
] ,
|
||||
[
|
||||
'name' => 'active',
|
||||
'type' => 'boolean',
|
||||
'label' => 'Active'
|
||||
]
|
||||
]);
|
||||
|
||||
$this->crud->addFields([
|
||||
[
|
||||
'name' => 'email',
|
||||
'type' => 'email',
|
||||
'label' => 'Email'
|
||||
] ,
|
||||
[
|
||||
'name' => 'active',
|
||||
'type' => 'check',
|
||||
'label' => 'Active'
|
||||
]
|
||||
]);
|
||||
|
||||
// add asterisk for fields that are required in SubscriberRequest
|
||||
$this->crud->setRequiredFields(StoreRequest::class, 'create');
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ class Organiser extends MyBaseModel implements AuthenticatableContract
|
|||
'account_id',
|
||||
'email',
|
||||
'phone',
|
||||
'name'
|
||||
'name',
|
||||
'about'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue