swooletw/laravel-swoole

The model uses observers and will be called three times.

Open

#376 opened on Feb 12, 2020

View on GitHub
 (1 comment) (0 reactions) (0 assignees)PHP (390 forks)batch import
help wanted

Repository metrics

Stars
 (3,995 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)

  1. Please provide your PHP and Swoole version. (php -v and php --ri swoole) 4.4.15

  2. Please provide your Laravel/Lumen version. 6.x

  3. Which release version of this package are you using?

new version

/**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        UserUser::observe(UserUserObserver::class);
    }

Output three times here


public function saved(UserUser $entry)
	{dump(1111);
}

Contributor guide