Repository

Repository presents a connection from where the data is retrieved.

Connection

Start by configuring your database connection in src/defaults.php or app/<app>/config/defaults.php.

<?php

return [
    'default' => [
        'driver' => 'mysql',
        'user' => dotenv('MYSQL_USER'),
        'pass' => dotenv('MYSQL_PASS'),
        'host' => dotenv('MYSQL_HOST'),
        'name' => dotenv('MYSQL_NAME'),
    ],
];

Drivers

MySQL

Faker

Custom

JSON

Static

DynamoDB

Memory

Last updated

Was this helpful?