*/ protected $hidden = ['api_key']; /** * @return array */ protected function casts(): array { return [ 'is_enabled' => 'boolean', 'api_key' => 'encrypted', 'settings' => 'array', 'checked_at' => 'immutable_datetime', ]; } /** * @return BelongsTo */ public function tenant(): BelongsTo { return $this->belongsTo(Tenant::class); } }