. */ namespace App\Contracts; use Illuminate\Database\Eloquent\Relations\HasMany; /** * This interface is used for type safety when referring to entities that * are capable of being favourited. */ interface Favouritable extends GeneratesNotifications { /** * This method returns an Eloquent relation to the entity's favourites. * * @return HasMany */ public function favourites():HasMany; }