Download the PHP package saurabhpunia/notifyx without Composer
On this page you can find all versions of the php package saurabhpunia/notifyx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download saurabhpunia/notifyx
More information about saurabhpunia/notifyx
Files in saurabhpunia/notifyx
Package notifyx
Short Description A powerful Laravel package to provide a frontend + backend in-app notification system for modern Laravel applications
License MIT
Informations about the package notifyx
🔔 Notifyx - Laravel Notification System
A simple and powerful notification system for Laravel applications. Send notifications to users and display them beautifully with real-time updates.
📋 What Does This Package Do?
- 📧 Send Notifications: Easily send notifications to users
- 🔔 Notification Bell: Shows unread count with a nice dropdown
- 📱 Real-time Updates: Notifications appear instantly without page refresh
- ⚙️ User Preferences: Let users choose how they want to receive notifications
- 📄 Notification History: Full page showing all user notifications
- 🏢 Multi-tenant Ready: Works with apps that have multiple tenants/teams
🎯 Quick Demo
After installation, you can send a notification like this:
And display notifications in your layout:
📦 Installation
Step 1: Install the Package
Step 2: Publish and Run Migrations
Step 3: Publish Configuration
Step 4: Add Trait to User Model
Open your app/Models/User.php file and add the trait:
Step 5: Add to Your Layout
Add the notification bell to your main layout file:
⚙️ Configuration
Basic Setup
The package comes with sensible defaults. You can customize notification types in config/notifyx.php:
Multi-tenant Applications
If your app has multiple tenants/teams, enable multi-tenancy:
🚀 How to Use
Sending Notifications
Simple Notification
Notification with Title
Notification with Type
Notification with Action Button
Notification via Multiple Channels
Using the Facade
You can also use the Notifyx facade:
Display Components
Notification Bell (with dropdown)
This shows a bell icon with unread count and dropdown with recent notifications.
Full Notification Page
Create a route and view for the full notification page:
User Preferences Page
Let users customize their notification preferences:
📱 Frontend Features
Real-time Updates
If you have Laravel Echo setup for broadcasting, notifications will appear in real-time without page refresh.
SPA-like Experience
All interactions (marking as read, deleting, etc.) happen without page reloads using Livewire.
User Preferences
Users can control:
- Which notification types they want to receive
- Which channels (email, browser, etc.) to use for each type
- Enable/disable notifications entirely
🎨 Customization
Custom Views
Publish the views to customize the appearance:
Views will be published to resources/views/vendor/notifyx/.
Custom Notification Types
Add your own notification types in the config:
🔧 Advanced Usage
Get User Notifications
Check User Preferences
📊 Database Tables
The package creates these tables:
notifications- Stores all notifications (Laravel's default)notification_preferences- Stores user preferences for notification types/channels
🔍 Troubleshooting
Notifications Not Appearing
- Check if the trait is added to your User model
- Make sure migrations ran with
php artisan migrate - Clear cache with
php artisan config:clear
Real-time Not Working
- Setup Laravel Echo for broadcasting
- Configure broadcasting driver (Pusher, Redis, etc.)
- Check broadcast channel permissions
Styling Issues
- Make sure Tailwind CSS is included in your project
- Publish views and customize if needed
- Check for CSS conflicts with your existing styles
📝 Requirements
- PHP: 8.2 or higher
- Laravel: 10.0, 11.0, or 12.0
- Livewire: 3.0 or higher
🤝 Support
For issues or questions:
- Check the troubleshooting section above
- Create an issue if you find a bug
📄 License
This package is open-source software licensed under the MIT license.
🎉 That's It!
You now have a complete notification system in your Laravel app. Users can receive notifications, view them in a beautiful interface, and customize their preferences. The system works great for both simple websites and complex multi-tenant applications.
Happy coding! 🚀
All versions of notifyx with dependencies
laravel/framework Version ^10.0|^11.0|^12.0
livewire/livewire Version ^3.0