$this->id, 'name' => $this->name, 'student_id' => $this->student_id, 'student_contract_id' => $this->student_contract_id, 'file_url' => $this->url ? Storage::url($this->url) : null, 'file_type' => $this->file_type, 'type' => $this->type, 'created_at' => Carbon::parse($this->created_at)->format('d/m/Y H:i'), ]; } }