database.php 451 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Spiral Framework.
  4. *
  5. * @license MIT
  6. * @author Anton Titov (Wolfy-J)
  7. */
  8. declare(strict_types=1);
  9. use Cycle\Database\Config;
  10. return [
  11. 'default' => 'default',
  12. 'databases' => [
  13. 'default' => ['driver' => 'mysql'],
  14. ],
  15. 'drivers' => [
  16. 'mysql' => new Config\MySQLDriverConfig(
  17. connection: new Config\MySQL\DsnConnectionConfig(env('DB_DSN')),
  18. queryCache: true
  19. ),
  20. ],
  21. ];