moodlesbv / laravel-msaccess
This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.
Installs: 1 052
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 20
Open Issues: 0
Requires
- doctrine/dbal: ^2.6
- illuminate/database: ^6.0
Requires (Dev)
- phpunit/phpunit: ~8.4
This package is auto-updated.
Last update: 2021-08-22 14:59:19 UTC
README
This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.
Installation
- Install via composer
composer require moodlesbv/laravel-msaccess
-
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