关于这一段代码有点疑惑
public function getIsFavoritedAttribute()
{
return $this->isFavorited();
}
为什么会定义一个访问器,然后返回的是他自身。
$this->isFavorited();
是Model内的另一个方法吧。