. */ namespace App\Contracts; use App\Models\User; use Illuminate\Database\Eloquent\Relations\MorphMany; /** * This interface is used for type safety when referring to entities that can be * the "target resource" of a notification (ie. what the notification is about). */ interface GeneratesNotifications { /** * Returns a human-friendly string (lowercase & singular) representing this * type of resource. * * @return string */ public function getResourceType():string; public function activities():MorphMany; }