glushkovds / phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel
MIT License
147 stars 26 forks source link

Update Base model for connection flexibility. #21

Closed Mishkoo93 closed 1 year ago

Mishkoo93 commented 1 year ago

We use several Clickhouses in our projects, and adding this variable will allow us to use this library more flexibly.

Because if we try to override getClient method, we get phpstan error, code duplicating... but we can in model simply override connection property.

glushkovds commented 1 year ago

Hi @Mishkoo93

Good solution, thank you.

Mishkoo93 commented 1 year ago

Thanks! =)