fix: null-safe role check, enable SQLite test DB, improve TinyMCE paste handling

This commit is contained in:
F4ilji
2026-07-05 22:34:04 +05:00
parent bec37c0e22
commit fd7de347d4
3 changed files with 14 additions and 4 deletions
@@ -20,7 +20,11 @@ class PostNotificationService
public function send(Post $post): void
{
// Находим всех пользователей с ролью "editor"
$editors = Role::findByName('editor')->users;
$role = Role::findByName('editor');
if (!$role) {
return;
}
$editors = $role->users;
// Отправляем уведомление каждому редактору
foreach ($editors as $editor) {