diff --git a/.env b/.env deleted file mode 100644 index 94d57c47..00000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -#为了能更愉快地 debug,此文件已经作废,请各位 移步 config/config.php 进行设置,但请不要删除此文件,会导致网站500 \ No newline at end of file diff --git a/app/Services/Boot.php b/app/Services/Boot.php index 49a83c1e..fd9933c9 100644 --- a/app/Services/Boot.php +++ b/app/Services/Boot.php @@ -7,13 +7,6 @@ use Illuminate\Database\Capsule\Manager as Capsule; class Boot { - public static function loadEnv() - { - // Env - $env = new Dotenv(BASE_PATH); - $env->load(); - } - public static function setDebug() { // debug diff --git a/composer.json b/composer.json index 8b18098c..309a7305 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,6 @@ "mailgun/mailgun-php": "^2.6.0", "predis/predis": "~1.0", "phpmailer/phpmailer": "~5.2", - "vlucas/phpdotenv": "~2.1", "zeuxisoo/slim-whoops": "0.5.*", "firebase/php-jwt": "~3.0", "aws/aws-sdk-php": "3.*", diff --git a/composer.lock b/composer.lock index 16275ec0..2612ef0c 100644 --- a/composer.lock +++ b/composer.lock @@ -3787,62 +3787,6 @@ ], "time": "2018-10-12T14:15:08+00:00" }, - { - "name": "vlucas/phpdotenv", - "version": "dev-master", - "source": { - "type": "git", - "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "54d599d414f8cf3f6129e287acaf44b610486aa1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/54d599d414f8cf3f6129e287acaf44b610486aa1", - "reference": "54d599d414f8cf3f6129e287acaf44b610486aa1", - "shasum": "", - "mirrors": [ - { - "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.5-dev" - } - }, - "autoload": { - "psr-4": { - "Dotenv\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Vance Lucas", - "email": "vance@vancelucas.com", - "homepage": "http://www.vancelucas.com" - } - ], - "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "time": "2018-08-22T19:34:05+00:00" - }, { "name": "voku/anti-xss", "version": "1.2.14",