UpdateSyncedResource
class UpdateSyncedResource extends QueueableListener (View source)
Properties
static bool | $shouldQueue |
Methods
void
handle(object $event)
No description
updateResourceInCentralDatabaseAndGetTenants(SyncedResourceSaved $event, array $syncedAttributes)
No description
void
updateResourceInTenantDatabases(TenantCollection $tenants, SyncedResourceSaved $event, array $syncedAttributes)
No description
array
array
getAttributeNamesAndDefaultValues(Model&Syncable $model)
Split the attribute names (sequential index items) and default values (key => values).
Details
bool
shouldQueue(object $event)
No description
void
handle(object $event)
No description
protected TenantCollection
getTenantsForCentralModel(Syncable $centralModel)
No description
protected TenantCollection
updateResourceInCentralDatabaseAndGetTenants(SyncedResourceSaved $event, array $syncedAttributes)
No description
protected void
updateResourceInTenantDatabases(TenantCollection $tenants, SyncedResourceSaved $event, array $syncedAttributes)
No description
protected array
getAttributesForCreation(Model&Syncable $model)
No description
protected array
getAttributeNamesAndDefaultValues(Model&Syncable $model)
Split the attribute names (sequential index items) and default values (key => values).