Laravel开发-laravel-postgis-database

  • W8_261305
    了解作者
  • 8.3KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-11 10:27
    上传日期
Laravel开发-laravel-postgis-database Laravel4的扩展Postgres驱动程序,为PostGIS功能提供支持。
Laravel开发-laravel-postgis-database .zip
内容介绍
# laravel-postgis-database 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 ```javascript { "require": { "lamb/laravel-postgis-database": "dev-master" } } ``` ## config/app.php Add it to the list of providers ```php 'providers' => array( 'Lamb\LaravelPostgisDatabase\PostgisDatabaseServiceProvider' ) ``` ## config/database.php Add a connection using the postgis driver instead of pgsql ```php 'pgsql' => array( 'driver' => 'postgis', 'host' => 'localhost', 'database' => 'database', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', ), ``` # license Released under the [MIT license](http://opensource.org/licenses/MIT)
评论
    相关推荐