#3392 if no email do not show in admin

This commit is contained in:
Diatrex 2021-03-02 15:04:53 +03:00
parent b9a736cc55
commit 40ff76f84d

View File

@ -1,5 +1,6 @@
<?php namespace Visiosoft\DefaultadminTheme\Listener;
use Anomaly\Streams\Platform\Entry\EntryModel;
use Anomaly\Streams\Platform\Ui\Table\Component\Header\Header;
use Illuminate\Support\Collection;
use Anomaly\Streams\Platform\Ui\Table\Component\Filter\Type\SearchFilter;
@ -53,7 +54,11 @@ class AddGsmFilter
$builder->setColumns([
'first_name',
'last_name',
'email',
'email' => [
'value' => function (EntryModel $entry) {
return str_ends_with($entry->email, '@example.com') ? '' : $entry->email;
}
],
'gsm_phone',
'created_at' => [
'value' => 'entry.created_at'