hasOne(AppSession::class, 'id', 'created_by_session_id'); } public function contentDetail() { return json_decode($this->content_detail); } }