PHP Classes

File: config/app.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP MVC Framework   config/app.php   Download  
File: config/app.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP MVC Framework
Example application using an MVC framework
Author: By
Last change:
Date: 1 month ago
Size: 1,148 bytes
 

Contents

Class file image Download
<?php

use function DI\env;

return [
   
'migration_dirs' => [
       
'first' => env('MIGRATION_DIR', __DIR__ . '/database/migrations'),

    ],
   
'environments' => [
       
'local' => [
           
'adapter' => env("DB_ADAPTER", 'mysql'),
           
'host' => env('DB_HOST', '127.0.0.1'),
           
'port' => env('DB_PORT', 3306), // optional
           
'username' => env('DB_USER', 'root'),
           
'password' => env('DB_PASS', 'root'),
           
'db_name' => env('DB_NAME', 'my_local_db'),
           
'charset' => env('DB_CHARSET', 'utf8mb4'),
           
'collation' => env('DB_COLLATION', 'utf8mb4_general_ci'),
        ],
       
'production' => [
           
'adapter' => 'mysql',
           
'host' => 'production_host',
           
'port' => 3306, // optional
           
'username' => 'user',
           
'password' => 'pass',
           
'db_name' => 'my_production_db',
           
'charset' => 'utf8mb4',
           
'collation' => 'utf8mb4_general_ci', // optional, if not set default collation for utf8mb4 is used
       
],
    ],
   
'default_environment' => env("APP_ENV", 'local'),
   
'log_table_name' => '',
];