Closed od3n closed 7 years ago
Into your Model:
/** * Check if the user has favorited this Object * The Model needs to have the Favoriteable trai * * @param Object $object * @return boolean */ public function hasFavorited($object) { return $object->isFavorited($this->id); }
Thank you
Into your Model: