Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Spatie\LaravelIgnition\Solutions;
4
 
5
use Spatie\Ignition\Contracts\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
    /** @return array<string, string> */
22
    public function getDocumentationLinks(): array
23
    {
24
        return [
25
            'Database: Getting Started docs' => 'https://laravel.com/docs/master/database#configuration',
26
        ];
27
    }
28
}