This is a small fix for boolean values in Laravel, when PostgreSQL connection set-up with parameter:
PDO::ATTR_EMULATE_PREPARES => true
- Copy
PostgresConnection.php
inApp\Database
folder - Connect
PostgresConnection
class inAppServiceProvider.php
file like in example - Add
casts
in you models for all boolean values