Created
June 18, 2020 12:51
-
-
Save blogcacanid/886711276de5646fa599a69abc81a4bf to your computer and use it in GitHub Desktop.
settings.php Back End Product Slim 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'settings' => [ | |
'displayErrorDetails' => true, // set to false in production | |
'addContentLengthHeader' => false, // Allow the web server to send the content-length header | |
// Renderer settings | |
'renderer' => [ | |
'template_path' => __DIR__ . '/../templates/', | |
], | |
// Monolog settings | |
'logger' => [ | |
'name' => 'slim-app', | |
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log', | |
'level' => \Monolog\Logger::DEBUG, | |
], | |
// Database Settings | |
'db' => [ | |
'host' => 'localhost', | |
'user' => 'root', | |
'pass' => 'j.fUjHyL', | |
'dbname' => 'slim3_backend_product', | |
'driver' => 'mysql' | |
], | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment