created_at); $updated_at = Carbon::parse($this->updated_at); return [ 'id' => (int)$this->id, 'username' => $this->username, 'created_at' => $created_at->format("Y-m-d H:i:s e"), 'updated_at' => $updated_at->format("Y-m-d H:i:s e"), 'primaryMail' => $this->getMail(), 'status' => $this->status, 'inviteCode' => $this->inviteCode, 'developer' => (bool)$this->developer, 'admin' => (bool)$this->admin ]; } }