An extended PostgreSQL driver for Laravel 5 with support for some aditional PostgreSQL data types: hstore, uuid, geometric types (point, path, circle, line, polygon...)
- Run
composer require bosnadev/database
in your project root directory. - Add
Bosnadev\Database\DatabaseServiceProvider::class
toconfig/app.php
'sproviders
array.
Then you are done.
- 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