ranger/notification

此包最新版本(dev-main)没有可用的许可证信息。

您可以创建您的任务待办事项清单。

dev-main 2022-05-22 06:04 UTC

This package is not auto-updated.

Last update: 2024-09-23 15:54:29 UTC


README

  1. 运行 composer require ranger/notification

  2. config/app.phpproviders 添加
    \Ranger\Notification\NotificationServiceProvider::class

  3. 进入 vendor/ranger/notification 文件夹

  4. 保持 "src/views/notification" 文件夹在 "resources/views"

  5. 在显示铃声的文件中添加 @include('notification.notification')

  6. 添加路由
    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');