| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- declare(strict_types=1);
- use Hypervel\Support\Str;
- return [
- /*
- |--------------------------------------------------------------------------
- | Default Database Connection Name
- |--------------------------------------------------------------------------
- |
- | Here you may specify which of the database connections below you wish
- | to use as your default connection for database operations. This is
- | the connection which will be utilized unless another connection
- | is explicitly specified when you execute a query / statement.
- |
- */
- 'default' => env('DB_CONNECTION', 'mysql'),
- 'connections' => [
- 'mysql' => [
- 'driver' => env('DB_DRIVER', 'mysql'),
- 'host' => env('DB_HOST', 'localhost'),
- 'database' => env('DB_DATABASE', 'hypervel'),
- 'port' => env('DB_PORT', 3306),
- 'username' => env('DB_USERNAME', 'root'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => env('DB_CHARSET', 'utf8mb4'),
- 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
- 'prefix' => env('DB_PREFIX', ''),
- 'pool' => [
- 'min_connections' => 1,
- 'max_connections' => env('DB_MAX_CONNECTIONS', 10),
- 'connect_timeout' => 10.0,
- 'wait_timeout' => 3.0,
- 'heartbeat' => -1,
- 'max_idle_time' => (float) env('DB_MAX_IDLE_TIME', 60),
- ],
- ],
- 'pgsql' => [
- 'driver' => env('DB_DRIVER', 'pgsql'),
- 'host' => env('DB_HOST', 'localhost'),
- 'database' => env('DB_DATABASE', 'hypervel'),
- 'schema' => env('DB_SCHEMA', 'public'),
- 'port' => env('DB_PORT', 5432),
- 'username' => env('DB_USERNAME', 'root'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => env('DB_CHARSET', 'utf8'),
- 'pool' => [
- 'min_connections' => 1,
- 'max_connections' => env('DB_MAX_CONNECTIONS', 10),
- 'connect_timeout' => 10.0,
- 'wait_timeout' => 3.0,
- 'heartbeat' => -1,
- 'max_idle_time' => (float) env('DB_MAX_IDLE_TIME', 60),
- ],
- ],
- 'sqlite' => [
- 'driver' => 'sqlite',
- 'url' => env('DATABASE_URL'),
- 'database' => env('DB_DATABASE', database_path('database.sqlite')),
- 'prefix' => '',
- 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
- ],
- 'sqlite_testing' => [
- 'driver' => 'sqlite',
- 'database' => ':memory:',
- 'prefix' => '',
- 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
- ],
- ],
- /*
- |--------------------------------------------------------------------------
- | Migration Repository Table
- |--------------------------------------------------------------------------
- |
- | This table keeps track of all the migrations that have already run for
- | your application. Using this information, we can determine which of
- | the migrations on disk haven't actually been run on the database.
- |
- */
- 'migrations' => 'migrations',
- /*
- |--------------------------------------------------------------------------
- | Redis Databases
- |--------------------------------------------------------------------------
- |
- | Redis is an open source, fast, and advanced key-value store that also
- | provides a richer body of commands than a typical key-value system
- | such as Memcached. You may define your connection settings here.
- |
- */
- 'redis' => [
- 'options' => [
- 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'hypervel'), '_') . '_database_'),
- ],
- 'default' => [
- 'host' => env('REDIS_HOST', 'localhost'),
- 'auth' => env('REDIS_AUTH', null),
- 'port' => (int) env('REDIS_PORT', 6379),
- 'db' => (int) env('REDIS_DB', 0),
- 'pool' => [
- 'min_connections' => 1,
- 'max_connections' => 10,
- 'connect_timeout' => 10.0,
- 'wait_timeout' => 3.0,
- 'heartbeat' => -1,
- 'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
- ],
- ],
- 'queue' => [
- 'host' => env('REDIS_HOST', 'localhost'),
- 'auth' => env('REDIS_AUTH', null),
- 'port' => (int) env('REDIS_PORT', 6379),
- 'db' => (int) env('REDIS_DB', 0),
- 'pool' => [
- 'min_connections' => 1,
- 'max_connections' => 10,
- 'connect_timeout' => 10.0,
- 'wait_timeout' => 3.0,
- 'heartbeat' => -1,
- 'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
- ],
- ],
- ],
- ];
|