moodlesbv/laravel-msaccess

This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

Package info

github.com/moodlesbv/laravel-msaccess

pkg:composer/moodlesbv/laravel-msaccess

Statistics

Installs: 1 052

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.2.3 2020-01-22 11:09 UTC

This package is auto-updated.

Last update: 2021-08-22 14:59:19 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.

Installation

  1. Install via composer
composer require moodlesbv/laravel-msaccess
  1. Create a DSN with the connection to the database.

  2. Add connection to config/database.php in connections section:

'access' => [
    'driver' => 'pdo_access',
    'connection_string' => 'dsn={namedsn}',
    'username' => '',
    'password' => '',
    'table_prefix' => '',
]
  1. Replace {namedsn} with the name of DSN.

Connect model with the connection

  1. In the model class add the $connection variable like this:
protected $connection = 'access';

License

Licensed under the MIT license

Read LICENSE for more information