notExistToInsert([$owner]); if(env('APP_ENV')=='production') app("OwnerService")->syncPush($owner); app("OwnerService")->createAuthority($owner); } public function updated(Owner $owner) { if(env('APP_ENV')=='production'){ app("OwnerService")->syncUpdate($owner); } } }