notifications / system-notifications
System Notifications Package
Installs: 2 406
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- edwinhoksberg/php-fcm: ^1.2
This package is not auto-updated.
Last update: 2025-03-26 16:07:07 UTC
README
The Database Operations
package provides a trait for Laravel models to handle database operations and track user
activity. It automatically populates database columns and simplifies the implementation of user tracking features.
Installation
To install the System Notifications
package, follow these steps:
-
Ensure that you have Composer installed on your machine.
-
Open your terminal and navigate to your Laravel project's directory.
-
Run the following command to install the package:
composer require notifications/system-notifications
- Run the following command to publish the config file named "fcm.php":
php artisan vendor:publish --provider="SystemNotifications\SystemNotificationsServiceProvider" --tag=system-notifications-config
- In your Env file add Firebase configuration:
FCM_SERVER_KEY=your_firebase_key FCM_SENDER_ID=your_firebase_sender_id
- After the package is installed, Laravel will automatically discover the package and register its service provider.
Usage
$variable['password'] = "testPassword@123"; $variable['firstname'] = "Arslan Ayoub"; $variable['email'] = "arsalanayoub48@gmail.com"; NotificationHelper::initializeNotification(SEEKER , 252,"NewAccountPassword",$variable);