belongsTo(User::class); } public function getProfilePhotoUrlAttribute() { if ($this->profile_photo) { return asset('storage/profiles/' . $this->profile_photo); } return null; } }