ranger / notification
您可以创建您的任务待办事项清单。
Requires
- php: >=7.1.26
- guzzlehttp/guzzle: ^7.2
- pusher/pusher-php-server: ^7.0
This package is not auto-updated.
Last update: 2024-09-23 15:54:29 UTC
README
-
运行 composer require ranger/notification
-
在 config/app.php 的 providers 添加
\Ranger\Notification\NotificationServiceProvider::class -
进入 vendor/ranger/notification 文件夹
-
保持 "src/views/notification" 文件夹在 "resources/views"
-
在显示铃声的文件中添加 @include('notification.notification')
-
添加路由
Route::get('ajax/get-notifications', 'NotifyController@getAllNotifications');
Route::post('ajax/read-notifications', 'NotifyController@readNotifications');
Route::post('ajax/read-all-notifications', 'NotifyController@readAllNotifications');
Route::post('ajax/execute-all-notifications', 'NotifyController@executeAllNotifications');
Route::get('show-all-notification', 'NotifyController@showAllNotifications');
Route::post('notify', 'NotifyController@getFromApi');