diff --git a/composer.json b/composer.json index 98e408d..cfa227e 100644 --- a/composer.json +++ b/composer.json @@ -66,6 +66,7 @@ ] }, "config": { + "platform-check": false, "preferred-install": "dist", "allow-plugins": { "composer/installers": true diff --git a/config/database.php b/config/database.php index 681741d..78500a8 100644 --- a/config/database.php +++ b/config/database.php @@ -53,16 +53,16 @@ return [ ], 'mysql' => [ - 'driver' => 'mysql', - 'engine' => 'InnoDB', - 'host' => 'localhost', - 'port' => 3306, - 'database' => 'berkarar', - 'username' => 'shohrat', - 'password' => 'Qazwsx12**', - 'charset' => 'utf8mb4', - 'collation' => 'utf8mb4_unicode_ci', - 'prefix' => '', + 'driver' => 'mysql', + 'engine' => 'InnoDB', + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'berkarar'), + 'username' => env('DB_USERNAME', ''), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', 'varcharmax' => 191, ],