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.
v1.0.1
2019-03-19 12:58 UTC
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.