aymanelarian/laravel-sqlserver-extender
Composer 安装命令:
composer require aymanelarian/laravel-sqlserver-extender
包简介
Extend SQL Server Grammar for Laravel & Lumen to fix migration
README 文档
README
This package extend the SQL Server driver from Laravel to fix the migration error due to using custom schema name and support sql server spatial
Install
Via Composer
$ composer require AymanElarian/laravel-sqlserver-extender
Once composer has been updated and the package has been installed, the service provider will need to be loaded.
For Laravel 5, open config/app.php and add following line to the providers array:
AymanElarian\Extensions\SqlServer\SpatialServiceProvider::class,
For Lumen 5, open bootstrap/app.php and add following line under the "Register Service Providers" section:
$app->register(AymanElarian\Extensions\SqlServer\SpatialServiceProvider::class);
For Laravel 4, open app/config/app.php and add following line to the providers array:
'AymanElarian\Extensions\SqlServer\SpatialServiceProvider',
TO DO : Development plan
- overwrite sql server grammer (compileTableExists method) to search by schema name
- refactor grimzy's Laravel mysql-spatial package to work with sql server
- support points in sql server
- support polygon in sql server
- support all other types in sql server
- fix all test cases to run with sql server
Usage
Once you included the service provider the Laravel/Lumen will start using the custom grammar.
Contributing
Contributions are very welcome. Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
Credits
Originally inspired and code refactored from grimzy's Laravel mysql-spatial package.
统计信息
- 总下载量: 289
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-21