. */ namespace App\Contracts; use Illuminate\Database\Eloquent\Relations\MorphMany; use App\Models\User; /** * 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). * * @package App\Contracts */ interface GeneratesNotifications { /** * Returns a human-friendly string (lowercase & singular) representing this * type of resource. * * @return string */ public function getResourceType():string; public function activities():MorphMany; }