Menu

1 / 2

Building a Dual Notification System for a Multi-Tenant Laravel SaaS

DEV Community·Dmitry Isaenko·6 months ago
#SEwOkxew
#why#system#admin#dual#database
Reading 0:00
15s threshold

Your SaaS needs to talk to users. Not just email - in-app notifications that persist, track reads, support multiple languages, and let admins target specific user segments.

I built Kohana.io - a production CRM/ERP for small businesses. The notification module evolved into a dual-architecture system: admin broadcasts and automated system notifications sharing the same table, the same UI, and the same read-tracking mechanism.

Now I'm extracting it into LaraFoundry , an open-source SaaS framework for Laravel. This post covers the full implementation.

Table of Contents

Dual Architecture

Database Schema

Multilingual Content

Recipient Segmentation

Admin CRUD & Workflow

System Notifications

Delivery & Read Statistics

Frontend UX

Testing

Design Decisions

Dual Architecture

LaraFoundry has two notification types that coexist in one system:

Admin notifications - created manually in the admin panel:

Multilingual titles and bodies stored as JSON in the database

Recipient filters: country, sex, age…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.