bosnadev / database
Eloquent Extended, added some PostgreSQL features
Installs: 1 419 458
Dependents: 5
Suggesters: 0
Security: 0
Stars: 78
Watchers: 7
Forks: 68
Open Issues: 13
Requires
- php: >=5.5
- doctrine/dbal: ^2.5|^3.0
- 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
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