public function updateFile($filePath, $user) { $this->user()->associate($user); $this->storeFile($filePath); $this->save(); return $this->fresh(); }