Skip to content

Releases: hhxsv5/laravel-s

v3.7.4

15 Jun 05:55
Compare
Choose a tag to compare

Add Apollo component

14 May 10:25
Compare
Choose a tag to compare
  • Add Apollo component
  • Add restart_interval for custom process
  • Optimize docs

Refactor asynchronous event listen

02 Apr 08:10
Compare
Choose a tag to compare
  • 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 list
        TestListener1::class,
        // TestListener2::class,
    ];
    private $data;
    public function __construct($data)
    {
        $this->data = $data;
    }
    public function getData()
    {
        return $this->data;
    }
}
use Hhxsv5\LaravelS\Swoole\Task\Task;
use Hhxsv5\LaravelS\Swoole\Task\Listener;
class TestListener1 extends Listener
{
    /**
     * @var TestEvent
     */
    protected $event;
    
    public function handle()
    {
        \Log::info(__CLASS__ . ':handle start', [$this->event->getData()]);
        sleep(2);// Simulate the slow codes
        // Deliver task in CronJob, but NOT support callback finish() of task.
        // Note: Modify task_ipc_mode to 1 or 2 in config/laravels.php, see https://www.swoole.co.uk/docs/modules/swoole-server/configuration
        $ret = Task::deliver(new TestTask('task data'));
        var_dump($ret);
        // throw new \Exception('an exception');// all exceptions will be ignored, then record them into Swoole log, you need to try/catch them
    }
}

Optimize laravel-admin cleaner

13 Mar 06:12
Compare
Choose a tag to compare
v3.6.4

optimize laravel-admin cleaner

v3.6.3

11 Mar 07:35
Compare
Choose a tag to compare
  • Keep compatible with laravel 7.x
  • Refactor cleaners
  • Optimize docs

Clear cookie for Laravel 6+

01 Mar 05:23
Compare
Choose a tag to compare
v3.6.2

clear cookie for laravel 6+

Add laravel-admin cleaner

05 Jan 13:07
Compare
Choose a tag to compare
  • Add laravel-admin cleaner.
  • Optimize documents.

Optimize custom process

04 Jan 10:52
Compare
Choose a tag to compare

Support custom process useQueue/pop/push/write/read.

Upgrade Tip: Instead of defining the process name via getName (), use the key name as the process name.

See specific documents.

v3.5.17

30 Dec 01:59
Compare
Choose a tag to compare
  • Fixed typo in loading Apache modules
  • Upgrade issue/funding template
  • Add docs for runtime file
  • Remove short name go()

v3.5.16

13 Dec 05:59
Compare
Choose a tag to compare
  • Support set chunk limit for response
  • Optimize reload custom process
  • Support coroutine runtime for custom process