'hashed', 'status' => 'integer', ]; } public function isEnabled(): bool { return (int) $this->status === 1; } public function channels(): HasMany { return $this->hasMany(Channel::class, 'user_id'); } public function hasTelegramBot(): bool { return trim((string) ($this->bot_token ?? '')) !== '' && trim((string) ($this->chat_id ?? '')) !== ''; } }