rvxlab/laravel-notification-channel-dailybin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rvxlab/laravel-notification-channel-dailybin

最新稳定版本:0.2.0

Composer 安装命令:

composer require rvxlab/laravel-notification-channel-dailybin

包简介

Notification Channel for Dailybin

README 文档

README

A notification channel for Daily Bin by Chris Arter.

Prerequisites

  • An account on Daily Bin
  • A token with at least the following scopes:
    • ingest:write

Installation

Install using Composer:

composer require rvxlab/laravel-notification-channel-dailybin

Add this to your config/services.php:

'dailybin' => [
    'token' => env('DAILYBIN_TOKEN'),
],

Set your DAILYBIN_TOKEN in your .env file:

DAILYBIN_TOKEN=YOUR TOKEN GOES HERE

Setting Up Your Notification

Add the Daily Bin channel to your notification and set up a toDailyBin method:

class SomeNotification extends Notification
{
    public function via($notifiable)
    {
        return [DailyBinChannel::class]; // or ['dailyBin']
    }
    
    public function toDailyBin($notifiable)
    {
        return (new DailyBinMessage())
            ->section('content')
            ->content('# Hello, world!')
            ->source('My App'); // Optional
    }
}

Then either make use of anonymous notification or register a notification route:

use Illuminate\Support\Facades\Notification;

Notification::route('dailyBin', 'whatever you like')
    ->notify(new SomeNotification());

// OR

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;

class User extends Model
{
    public function routeNotificationForDailyBin(): string
    {
        return 'whatever you like'; // or false if you don't want to send notifications
    }
}

$user = User::firstOrFail();
$user->notify(new SomeNotification());

Contributing

Contributions are very welcome. Please read CONTRIBUTING.md for guidelines.

License

This package is licensed under the MIT License.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固