search fix

This commit is contained in:
merdan 2020-04-07 17:51:06 +05:00
parent d35e58ac72
commit eb43b2d5d4
2 changed files with 28 additions and 2 deletions

View File

@ -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');

View File

@ -56,7 +56,8 @@ class Organiser extends MyBaseModel implements AuthenticatableContract
'account_id',
'email',
'phone',
'name'
'name',
'about'
];
/**