ricardosierra / database
Eloquent Extended, added some PostgreSQL features
1.0
2020-09-13 18:24 UTC
Requires
- php: >=5.5
- doctrine/dbal: ^2.5
- illuminate/database: ^5.0|^6.0|^7.0|^8.0
- ramsey/uuid: ^3.0|^4.0
Requires (Dev)
- codeclimate/php-test-reporter: ^0.3.2
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.5
Replaces
README
An extended PostgreSQL driver for Laravel 5.2+ with support for some aditional PostgreSQL data types: hstore, uuid, geometric types (point, path, circle, line, polygon...)
Getting Started
Laravel 5.2+
- Run
composer require bosnadev/database
in your project root directory. - Add
Bosnadev\Database\DatabaseServiceProvider::class
toconfig/app.php
'sproviders
array.
Then you are done.
Lumen 5.*
- Run
composer require bosnadev/database
in your project root directory. - Add
$app->register(Bosnadev\Database\DatabaseServiceProvider::class);
tobootstrap/app.php
(under the "Register Service Providers" section) - Uncomment the line
$app->withEloquent();
inbootstrap/app.php