lamb / laravel-postgis-database
An extended Postgres driver for Laravel 4 that provides support for PostGIS features.
Installs: 343
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 6
Forks: 13
Open Issues: 5
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
This package is not auto-updated.
Last update: 2024-11-18 12:34:53 UTC
README
Provides an extended Postgres driver for Laravel 4 that provides support for PostGIS features
features
- Adds schema grammer for point
- Adds schema grammer for polygon
install
composer.json
Add a requirement for the package
{ "require": { "lamb/laravel-postgis-database": "dev-master" } }
config/app.php
Add it to the list of providers
'providers' => array( 'Lamb\LaravelPostgisDatabase\PostgisDatabaseServiceProvider' )
config/database.php
Add a connection using the postgis driver instead of pgsql
'pgsql' => array( 'driver' => 'postgis', 'host' => 'localhost', 'database' => 'database', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', ),
license
Released under the MIT license