Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny.iva committed Mar 23, 2023
1 parent 8ab9ede commit 28ab892
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@


## Installation
```
```shell
composer require umbrellio/php-table-sync
```

## Usage
Let's describe the model that needs to be synchronized using an example `User.php`
```
```php
...
User extends Model implements SyncableModel
{
Expand Down Expand Up @@ -48,15 +48,15 @@ When the model changes, the data will be sent according to the rules of `TableSy
## Logging
Logging based on the Monolog package and contains some extensions for it.
- specify the logging channel in `config/table_sync.php`
```
```php
...
'log' => [
'channel' => 'table_sync',
],
...
```
- and describe this channel in `config/logging.php`
```
```php
...
'table_sync' => [
'driver' => 'stack',
Expand All @@ -80,7 +80,7 @@ Logging based on the Monolog package and contains some extensions for it.
##### You can use the built-in `LineTableSyncFormatter::class` with the available parameters: `%datetime%` `%message%` `%direction%` `%model%` `%event%` `%routing%` `%attributes%` `%exception%`

###### Driver `influxdb` is an additional option and is not required to add in config
```
```php
...
'table_sync' => [
'driver' => 'daily',
Expand Down

0 comments on commit 28ab892

Please sign in to comment.