nsrosenqvist/soma-database

The Illuminate Database module for the SOMA framework

1.0.0 2020-06-09 13:02 UTC

This package is auto-updated.

Last update: 2022-01-09 16:23:28 UTC


README

Installation

composer require nsrosenqvist/soma-database

Usage

First register the service provider.

Example configuration:

<?php return [
    'default' => 'sqlite',
    'connections' => [
        'sqlite' => [
            'driver' => 'sqlite',
            'database' => get_path('storage').'/database.sqlite',
            'prefix' => '',
            'foreign_key_constraints' => true,
        ],
        'auth' => [
            'driver' => 'sqlite',
            'database' => get_path('storage').'/auth.sqlite',
            'prefix' => '',
            'foreign_key_constraints' => true,
        ],
    ],
];

To see how to configure all supported database connections refer to the Illuminate documentation.

License

MIT