addType('id','integer'); } public function jsonSerialize() { return [ 'id' => $this->id, 'agency' => $this->agency, 'user' => $this->user, ]; } }