Search code examples
phplaravellaravel-5.5laraadminlaravel-admin

Config error Laravel 5.5 admin


I have just integrated laravel-admin in my Laravel project. When I try to get login then it shows me an error message at the top of every inner pages.

Please check the screenshot:

enter image description here

And here is the 'disks' array from my filesystems.php:

'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('AWS_KEY'),
            'secret' => env('AWS_SECRET'),
            'region' => env('AWS_REGION'),
            'bucket' => env('AWS_BUCKET'),
        ],

    ],

I have tried to find out the issue but nothing helped.


Solution

  • may be you need to add admin to disks array like this

    'disks' => [
            'admin' => [
                'driver' => 'local',
                'root' => storage_path('app'),
            ],
    
            'local' => [
                'driver' => 'local',
                'root' => storage_path('app'),
            ],
    
            'public' => [
                'driver' => 'local',
                'root' => storage_path('app/public'),
                'url' => env('APP_URL').'/storage',
                'visibility' => 'public',
            ],
    
            's3' => [
                'driver' => 's3',
                'key' => env('AWS_KEY'),
                'secret' => env('AWS_SECRET'),
                'region' => env('AWS_REGION'),
                'bucket' => env('AWS_BUCKET'),
            ],
    
        ],