Filter Added For All

This commit is contained in:
devansh bawari 2020-12-24 17:29:10 +05:30
parent ca2de63b48
commit da5b8a4ca7
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ class ChannelDataGrid extends DataGrid
->addSelect('channels.id', 'channels.code', 'channel_translations.locale', 'channel_translations.name as translated_name', 'channels.hostname')
->where('channel_translations.locale', '=', $this->locale);
$this->addFilter('id', 'channels.id');
$this->addFilter('code', 'channels.code');
$this->addFilter('hostname', 'channels.hostname');
$this->addFilter('translated_name', 'channel_translations.name');
$this->setQueryBuilder($queryBuilder);