getSolutionDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Facade\Ignition\Solutions;
4
5
use Facade\IgnitionContracts\Solution;
6
7
class SuggestUsingCorrectDbNameSolution implements Solution
8
{
9
    public function getSolutionTitle(): string
10
    {
11
        return 'Database name seems incorrect';
12
    }
13
14
    public function getSolutionDescription(): string
15
    {
16
        $defaultDatabaseName = env('DB_DATABASE');
17
18
        return "You're using the default database name `$defaultDatabaseName`. This database does not exist.\n\nEdit the `.env` file and use the correct database name in the `DB_DATABASE` key.";
19
    }
20
21
    public function getDocumentationLinks(): array
22
    {
23
        return [
24
            'Database: Getting Started docs' => 'https://laravel.com/docs/master/database#configuration',
25
        ];
26
    }
27
}
28