Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Notifications

LicenseStableDownloadsPHPIssuesMerge Requests

Description

Notifications provides Enso API endpoints and broadcast channels for user notifications.

The package exposes listing, counting, read, read-all, delete, and delete-all endpoints on top of Laravel's database notifications, and registers a per-user broadcast channel based on the configured auth model.

It is intended to back the Enso notification dropdown and related realtime UI flows.

Installation

Install the package:

composer require laravel-enso/notifications

Run the package migrations:

php artisan migrate

Features

  • Notification list and unread-count endpoints.
  • Mark-one and mark-all-as-read endpoints.
  • Delete-one and delete-all endpoints.
  • Broadcast channel registration for user-specific notification streams.

Usage

Main route group:

  • core.notifications.*

The broadcast channel is derived from the configured auth model namespace and ends with .{id}.

API

HTTP routes

  • GET api/core/notifications
  • DELETE api/core/notifications/destroyAll
  • DELETE api/core/notifications/{notification}
  • GET api/core/notifications/count
  • PATCH api/core/notifications/read/{notification}
  • POST api/core/notifications/readAll

Broadcast

  • per-user notification channel for the configured auth provider model

Depends On

Required packages:

  • laravel-enso/core ↗
  • laravel-enso/migrator ↗
  • pusher/pusher-php-server

Companion frontend package:

  • @enso-ui/notifications ↗

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

Edit this page on GitHub
Last Updated: 4/20/2026, 3:08:05 PM
Prev
Monitored Emails
Next
Packaging Units