nsrosenqvist / soma-database
The Illuminate Database module for the SOMA framework
1.0.0
2020-06-09 13:02 UTC
Requires
- php: >=7.0.0
- illuminate/database: ^7.0
This package is auto-updated.
Last update: 2024-10-09 22:29:44 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