src/Traits/Favoriteable.php
public function isFavorited($user_id = null)
	{
		return $this->favorites()->where('user_id', ($user_id) ? $user_id : Auth::id())->exists();
	}
public function isFavorited($user_id = null)
	{
		return $this->favorites()->where('user_id', ($user_id) ? $user_id : Auth::id())->exists();
	}
Check if the user has favorited this Object

@param  int $user_id  [if  null its added to the auth user]
@return boolean