Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.161.182
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
facade /
ignition /
src /
Solutions /
Delete
Unzip
Name
Size
Permission
Date
Action
GenerateAppKeySolution.php
1010
B
-rw-r--r--
2020-11-17 16:24
LivewireDiscoverSolution.php
1.27
KB
-rw-r--r--
2020-11-17 16:24
MakeViewVariableOptionalSolution.php
2.92
KB
-rw-r--r--
2020-11-17 16:24
MissingPackageSolution.php
1.11
KB
-rw-r--r--
2020-11-17 16:24
RunMigrationsSolution.php
1.21
KB
-rw-r--r--
2020-11-17 16:24
SolutionTransformer.php
1.41
KB
-rw-r--r--
2020-11-17 16:24
SuggestCorrectVariableNameSolution.php
914
B
-rw-r--r--
2020-11-17 16:24
SuggestImportSolution.php
623
B
-rw-r--r--
2020-11-17 16:24
SuggestUsingCorrectDbNameSolution.php
767
B
-rw-r--r--
2020-11-17 16:24
UseDefaultValetDbCredentialsSolution.php
1.64
KB
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php namespace Facade\Ignition\Solutions; use Facade\IgnitionContracts\RunnableSolution; use Illuminate\Support\Str; class UseDefaultValetDbCredentialsSolution implements RunnableSolution { public function getSolutionActionDescription(): string { return 'Pressing the button below will change `DB_USER` and `DB_PASSWORD` in your `.env` file.'; } public function getRunButtonText(): string { return 'Use default Valet credentials'; } public function getSolutionTitle(): string { return 'Could not connect to database'; } public function run(array $parameters = []) { if (! file_exists(base_path('.env'))) { return; } $this->ensureLineExists('DB_USERNAME', 'root'); $this->ensureLineExists('DB_PASSWORD', ''); } protected function ensureLineExists(string $key, string $value) { $envPath = base_path('.env'); $envLines = array_map(function (string $envLine) use ($value, $key) { return Str::startsWith($envLine, $key) ? "{$key}={$value}".PHP_EOL : $envLine; }, file($envPath)); file_put_contents($envPath, implode('', $envLines)); } public function getDocumentationLinks(): array { return []; } public function getRunParameters(): array { return [ 'Valet documentation' => 'https://laravel.com/docs/master/valet', ]; } public function getSolutionDescription(): string { return 'You seem to be using Valet, but the .env file does not contain the right default database credentials.'; } }