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