$this->id, 'name' => $this->name, 'verified' => (bool) $this->verified, 'id_card' => $this->id_card, 'front_card' => $this->when($this->front_card, function () { return Storage::url($this->front_card); }), 'back_card' => $this->when($this->back_card, function () { return Storage::url($this->back_card); }), 'created_at' => (string) $this->created_at, ]; } }