@@ -24,7 +24,7 @@ |
||
| 24 | 24 | return; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - Mail::send($view, $configuration, function ($message) use ($configuration) { |
|
| 27 | + Mail::send($view, $configuration, function($message) use ($configuration) { |
|
| 28 | 28 | $message->from(Config::get('mail.from.address'), Config::get('mail.from.name')); |
| 29 | 29 | $message->to($configuration['email'])->subject($configuration['subject']); |
| 30 | 30 | }); |
@@ -1,9 +1,9 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -namespace App\Helpers; |
|
| 3 | + namespace App\Helpers; |
|
| 4 | 4 | |
| 5 | -/* Avoids CloudFlare IP to be logged as users IP */ |
|
| 5 | + /* Avoids CloudFlare IP to be logged as users IP */ |
|
| 6 | 6 | |
| 7 | -if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { |
|
| 8 | - $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; |
|
| 7 | + if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { |
|
| 8 | + $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; |
|
| 9 | 9 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | Storage::put('.env', 'APP_ENV=production'); |
| 69 | 69 | |
| 70 | 70 | $this->comment('[INFO] Generating Chocolatey encryption key for password hashing...'); |
| 71 | - Storage::append('.env', 'APP_KEY='.bin2hex(openssl_random_pseudo_bytes(20))); |
|
| 71 | + Storage::append('.env', 'APP_KEY=' . bin2hex(openssl_random_pseudo_bytes(20))); |
|
| 72 | 72 | |
| 73 | 73 | $this->comment('[INFO] Setting Chocolatey debug mode to false...'); |
| 74 | 74 | Storage::append('.env', 'APP_DEBUG=false'); |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | Storage::append('.env', 'DB_CONNECTION=mysql'); |
| 81 | 81 | |
| 82 | 82 | $this->comment('[INFO] Appending all database credentials to .env file...'); |
| 83 | - Storage::append('.env', 'DB_HOST='.$DB_HOST); |
|
| 84 | - Storage::append('.env', 'DB_PORT='.$DB_PORT); |
|
| 85 | - Storage::append('.env', 'DB_DATABASE='.$DB_NAME); |
|
| 86 | - Storage::append('.env', 'DB_USERNAME='.$DB_USER); |
|
| 87 | - Storage::append('.env', 'DB_PASSWORD='.$DB_PASS); |
|
| 83 | + Storage::append('.env', 'DB_HOST=' . $DB_HOST); |
|
| 84 | + Storage::append('.env', 'DB_PORT=' . $DB_PORT); |
|
| 85 | + Storage::append('.env', 'DB_DATABASE=' . $DB_NAME); |
|
| 86 | + Storage::append('.env', 'DB_USERNAME=' . $DB_USER); |
|
| 87 | + Storage::append('.env', 'DB_PASSWORD=' . $DB_PASS); |
|
| 88 | 88 | Storage::append('.env', ''); |
| 89 | 89 | |
| 90 | 90 | $this->comment('[DRIVERS] Setting broadcast to log...'); |