Code Monkey home page Code Monkey logo

laravel-jpush-notification-channel's Introduction

Hi there 👋

Keep calm and coding.

I'm Seven Du, a full-stack developer starting a business. Founded Odroe Inc, a company dedicated to open source software.

Motto: if(true == false) false = true

🇨🇳 Chengdu・👨🏻‍💻 Full-stack Developer

E-Mail: shiweidu at outlook dot com

Language:Dart❤️、Rust🤩、TypeScript/JavaScript(ES6+)🥳、Swift

Framework:Flutter、Vue.js、React.js、Nest.js、And any more...

laravel-jpush-notification-channel's People

Contributors

medz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

slimkit acmagic

laravel-jpush-notification-channel's Issues

怎么触发通知呢? Notification::send ?

我的触发通知是用的
$course_sub = CourseSubModel::query()->first();
Notification::send($course_sub, new CourseSure());

在CouserSubModel添加了

protected function routeNotificationForJpush()
{
    return new JPushSender([
        'platform' => 'all',
        'audience' => [
            'alias' => sprintf('user_%d', $this->id),
        ],
    ]);
}

但还是报错
#message: "Call to undefined method App\Model\Course\CourseSubModel::routeNotificationFor()"
#code: 0
#file: "/www/wwwroot/api.shenyanshe.95shouyou.com/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php"

该怎么正确触发通知呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.