public function getavatar() { if ($this->avatar) { return "{$this->avatar}"; }
return null;
}
public function avatar()
{
return $this->getavatar() ?: $this->avatar;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community