Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novaday-co/laravel-pushe
Send Pushe notification in Laravel
https://github.com/novaday-co/laravel-pushe
iran laravel notification pushe
Last synced: about 12 hours ago
JSON representation
Send Pushe notification in Laravel
- Host: GitHub
- URL: https://github.com/novaday-co/laravel-pushe
- Owner: novaday-co
- Created: 2021-06-19T04:43:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T04:24:55.000Z (over 3 years ago)
- Last Synced: 2024-04-20T07:40:21.080Z (7 months ago)
- Topics: iran, laravel, notification, pushe
- Language: PHP
- Homepage: https://packagist.org/packages/novaday-co/laravel-pushe
- Size: 198 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel Pushe - لاراول پوشه
ارسال نوتیفیکیشن پوشه در لاراول
```php
$pushe = new Pushe;
$response = $pushe->setFilters([
'tags' => [
'user_id' => '123',
]
])
->setData([
"title" => "This is a filtered notification",
"content" => "Only users already subscribed to filter can see me",
])->send();```
نصب پکیج```composer
composer require farazin-co/laravel-pushe
```
ایجاد فایل کانفیگ - توکن و اپ آی دی را حتما تنظیم کنید```composer
php artisan vendor:publish --provider="FarazinCo\LaravelPushe\PusheServiceProvider"
```
متد های قابل استفاده| Method | Description |
|------------ |------------------------------------- |
| setToken | توکن جدیدی را روی توکن کانفیگ بیندازید |
| setAppIds | آی دی اپ جدیدی را روی توکن کانفیگ بندازید |
| setData | ست کردن دیتا |
| setFilters | ست کردن فیلتر - دسته بندی |
| setTags | ست کردن مستقیم تگ |
| setTopics | ست کردن تاپیک |
| send | ارسال نوتیفیکیشن |