Download the PHP package infinety-es/notifications without Composer
On this page you can find all versions of the php package infinety-es/notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infinety-es/notifications
More information about infinety-es/notifications
Files in infinety-es/notifications
Package notifications
Short Description Notification messages system
License MIT
Informations about the package notifications
Laravel 5 Notifications
A package to manage Notifications
With this package you can send notifications to your model. You can choose if you want users, or whatever model.
Notifications are saved on notifications
and each item of your model can retrieve it. Also you can set each notification as read.
Installation
Install via composer: composer require infinety-es\notifications
Then register the service provider in config/app.php
inside providers
array:
Publish package files:
Tip: You can also publish only this tags:
config
,views
andmigrations
After modify config\notifications.php
file NotificationTrait
to your model. For example User model:
Use
In your browser go to notifications
. Example: www.infinety.app/notifications
.
Default pages are in resources\views\vendor\notifications
. You can view
and create
notifications with a simple interface. You can modify everything.
Command
You can create notifications by artisan
with command:
You have some options you need to add. If not, the command will ask you. Options are:
Trait Methods
Get all notifications
This method retrieves all notifications read and not read notifications
Get not read notifications
This method retrieves not read notifications
Get read notifications
This method retrieves read notifications. It's great if you want to show history.
Get count of all notifications
Get count of all notifications including read and not read.
Get count of not read notifications
Get count of all notifications not read.
Contributing
All contributions (in the form on pull requests, issues and feature-requests) are welcome. See the contributors page for all contributors.
License
Laravel 5 Notifications is an open-sourced laravel package licensed under the MIT License (MIT). Please see the license file for more information.
All versions of notifications with dependencies
illuminate/config Version ~5.0
illuminate/support Version ~5.0
yajra/laravel-datatables-oracle Version ~6.0