user_id}"; } /** * Return the default title of the avatar. * @return string the default title */ public function getDefaultTitle() { return Course::find($this->user_id)->name; } /** * Return if avatar is visible to the current user. * @return boolean: true if visible */ protected function checkAvatarVisibility() { //no special conditions for visibility of course-avatars yet return true; } }