yassi / nova-one-signal
A Laravel Nova tool.
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 108
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/yassi/nova-one-signal
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2022-07-19 21:32:01 UTC
README
Nova One Signal
This package allows you to use the OneSignal API to send notifications from your Nova admin dashboard.
Installation
composer require yassi/nova-one-signal
php artisan vendor:publish --provider="Yassi\NovaOneSignal\ToolServiceProvider"
Configuration
You can edit the configuration file as follows:
<?php return [ 'api_key' => env('ONE_SIGNAL_API_KEY'), 'app_id' => env('ONE_SIGNAL_APP_ID'), 'model' => ClassToUseWithExternalUserID::class, 'name' => 'user_name_key', 'avatar' => 'user_avatar_key', 'locales' => [ 'en' => 'English', 'fr' => 'Français' ], 'fallback_locale' => 'default_required_locale', 'recipients_fields' => [ 'id', 'external_user_id', 'created_at', ... ] ];
Usage
The package will automatically link your OneSignal recipients with your local database users' table using the "external_user_id" key (see OneSignal API). You can then simply select the users you want to send a localized notification to and the package will take care of the rest.
Information
This package is under development.