zoilomora/laravel-msaccess
最新稳定版本:1.0.0-beta
Composer 安装命令:
composer require zoilomora/laravel-msaccess
包简介
This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.
README 文档
README
It is recommended to visit the updated repository https://github.com/zoilomora/doctrine-dbal-msaccess that is being maintained and is not limited to the Laravel framework.
Laravel ORM for Microsoft Access DB
This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.
Installation
- Install via composer
composer require zoilomora/laravel-msaccess
- Add Service Provider to
config/app.phpinproviderssection:
\ZoiloMora\AccessServiceProvider::class,
-
Create a DSN with the connection to the database.
-
Add connection to
config/database.phpinconnectionssection:
'access' => [ 'driver' => 'pdo_access', 'connection_string' => 'dsn={namedsn}', 'username' => '', 'password' => '', 'table_prefix' => '', ]
- Replace
{namedsn}with the name of DSN.
Connect model with the connection
- In the model class add the
$connectionvariable like this:
protected $connection = 'access';
License
Licensed under the MIT license
Read LICENSE for more information
统计信息
- 总下载量: 5.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-03