This commit is contained in:
Bozhidar 2024-09-19 15:43:32 +03:00
parent a69830193e
commit b9f3d0c90c
2 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,7 @@
namespace Modules\Email\App\Filament\Resources;
use App\Models\Domain;
use Faker\Provider\Text;
use Modules\Email\App\Filament\Resources\EmailAliasResource\Pages;
use Modules\Email\App\Filament\Resources\EmailAliasResource\RelationManagers;
use Modules\Email\App\Models\EmailAlias;
@ -52,7 +53,10 @@ class EmailAliasResource extends Resource
{
return $table
->columns([
//
Tables\Columns\TextColumn::make('forward'),
Tables\Columns\TextColumn::make('goto')
->label('To'),
])
->filters([
//

View file

@ -19,4 +19,9 @@ class EmailAlias extends Model
'domain',
];
public function getForwardAttribute()
{
return $this->address . '@' . $this->domain;
}
}