• Developer New

    Friday, March 24, 2017

    all #Events in laravel

    Event::fire('foo.bar', [$bar]);
    Event::listen('foo.bar', function($bar){});
    Event::listen('foo.*', function($bar){});
    Event::listen('foo.bar', 'FooHandler', 10);
    Event::listen('foo.bar', 'BarHandler', 5);
    Event::listen('foor.bar', function($event){ return false; });
    Event::queue('foo', [$bar]);
    Event::flusher('foo', function($bar){});
    Event::flush('foo');
    Event::forget('foo');
    Event::subscribe(new FooEventHandler);

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel