'array', 'welcome_sent_at' => 'datetime', 'bot_paused_until' => 'datetime', 'terms_accepted_at' => 'datetime', 'in_service' => 'boolean', 'on_hold' => 'boolean', 'advisor_requested' => 'boolean', 'bot_enabled' => 'boolean', 'terms_pending' => 'boolean', ]; public function conversations() { return $this->hasMany(WhatsappConversation::class, 'user_id'); } public function lastMessage() { return $this->hasOne(WhatsappConversation::class, 'user_id')->latestOfMany(); } public function currentMenu() { return $this->belongsTo(WhatsappMenu::class, 'current_menu_id'); } }