refactor: use laravel notifications for system user private messages

This commit is contained in:
Roardom
2025-01-25 09:41:14 +00:00
parent 18ba1a5cc5
commit 6a103cee97
32 changed files with 1007 additions and 122 deletions

View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author Roardom <roardom@protonmail.com>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/
namespace App\Interfaces;
use App\Models\User;
interface SystemNotificationInterface
{
/**
* @return array{subject: string, message: string}
*/
public function toSystemNotification(User $notifiable): array;
}