zoilomora / laravel-msaccess
This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.
Installs: 4 135
Dependents: 0
Suggesters: 0
Security: 0
Stars: 31
Watchers: 5
Forks: 21
Open Issues: 3
Requires
- doctrine/dbal: ^2.6
- illuminate/database: ^5.4
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2020-11-26 17:39:10 UTC
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.php
inproviders
section:
\ZoiloMora\AccessServiceProvider::class,
-
Create a DSN with the connection to the database.
-
Add connection to
config/database.php
inconnections
section:
'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
$connection
variable like this:
protected $connection = 'access';
License
Licensed under the MIT license
Read LICENSE for more information