LaravelS v3.7.0 Release Notes

Release Date: 2020-04-02 // over 1 year ago
    • ➕ Add the enable field to determine whether the socket is enabled or not. It is enabled by default.
    • [Incompatible] Define listeners in events, not in the laravels.php configuration file.

      use Hhxsv5\LaravelS\Swoole\Task\Event;class TestEvent extends Event{protected $listeners = [// Listener listTestListener1::class,// TestListener2::class,];private $data;public function __construct($data) {$this->data = $data; }public function getData() {return $this->data; }}