Giter Site home page Giter Site logo

fireable's People

Contributors

crynobone avatar davidnadejdin avatar etchfoda avatar ilzrv avatar joaorobertopb avatar laravel-shift avatar lepikhinb avatar stylecibot 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fireable's Issues

No config provided

The ServiceProvider publishes a config file but there is no config file in your project.

Dynamic value support

Current state works good for statuses, what about numeric/dynamic fields?
I want to dispatch an event when a user passing 50 points.

class User extends Model
{
    use FireableAttributes;

    protected $fillable = [
        'points',
    ];

    protected function getFireableAttributes() : array
    {
        return [
            'points' => [
                UserPassed50Points::class => static function (User $user) {
                    return $user->points >= 50;
                },
            ],
        ];
    }
}

The implementation is a bit problematic, because it requires to use a method and not a property, as well it's moving the event name to the key and the closure to the value.

Support Laravel 9

We want to upgrade to Laravel 9 but this package has no release (yet) to support it. I see in that you commit the changes already in the master-branch, but I don't see a new release.

When is the new release planned?

Doesn't Support PHP 7.3

image

When I look at the composer.json file, it looks like it shouldn't be throwing this error, but it is.

Laravel 10 & PHP 8.1

Hey!

I would like to use this with a Laravel 10 app. Is it possible to tag a release for Laravel 10?

Attribute coming from One2Many relationship

I have a Laravel 7 project which has a table Orders and a table Statuses with a OneToMany relationship and I would like to send different email notifications based on the different status_id present on the Order Model/Table.

I am struggling to understand how to use this so I was wondering if someone could please share some examples or advices on how to implement this.

Do I have to publish the package first?

Can it be used on a status_id field on the table rather than a string ?

Do I have to import the package from somewhere specific in my Model ?

Thanks

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.