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: 2024-12-09 22:46:12 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