diff --git a/.env.example b/.env.example index 7efa6c29b..d1655616b 100644 --- a/.env.example +++ b/.env.example @@ -11,3 +11,11 @@ DB_PORT=3306 DB_DATABASE=torrentpier DB_USERNAME=root DB_PASSWORD=root + +# Mail credentials +MAIL_DRIVER=smtp +MAIL_HOST=smtp.yandex.ru +MAIL_PORT=465 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=ssl diff --git a/.gitignore b/.gitignore index 916f97632..c7cdab175 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ ### TorrentPier ### +.env .idea .php_cs.cache bower_components diff --git a/composer.json b/composer.json index 5959e1cc7..e8108948c 100644 --- a/composer.json +++ b/composer.json @@ -36,11 +36,11 @@ }, "require": { "php": "^7.0", - "bugsnag/bugsnag": "^3.5", + "laravel/framework": "^5.4", + "bugsnag/bugsnag-laravel": "^2.5", "filp/whoops": "^2.1", "gigablah/sphinxphp": "^2.0", "google/recaptcha": "^1.1", - "laravel/framework": "^5.4", "longman/ip-tools": "^1.2", "roave/security-advisories": "dev-master", "rych/bencode": "^1.0", @@ -58,6 +58,11 @@ "Tests\\": "tests/" } }, + "scripts": { + "post-install-cmd": [ + "php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ] + }, "minimum-stability": "stable", "prefer-stable": true }