Signed-off-by: Nguyen Van Nguyen <nguyennv1981@gmail.com>
This commit is contained in:
Nguyen Van Nguyen 2024-04-23 08:51:32 +07:00
parent 454accc470
commit 7ae0aaad31
2 changed files with 14 additions and 0 deletions

View file

@ -38,6 +38,8 @@ class Domain extends Model
protected $fillable = [
'agency_id',
'user_id',
'admin_user',
'admin_password',
'zimbra_id',
'name',
'status',
@ -50,6 +52,16 @@ class Domain extends Model
'updated_by',
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'admin_user',
'admin_password',
];
/**
* Get the coses for the domain.
*/

View file

@ -15,6 +15,8 @@ return new class extends Migration
$table->id();
$table->foreignId('agency_id')->default(0)->index();
$table->foreignId('user_id')->default(0)->index();
$table->string('admin_user');
$table->string('admin_password');
$table->string('zimbra_id')->unique();
$table->string('name')->unique();
$table->enum('status', [