简体   繁体   English

配置错误Laravel 5.5管理员

[英]Config error Laravel 5.5 admin

I have just integrated laravel-admin in my Laravel project. 我刚刚在我的Laravel项目中集成了laravel-admin When I try to get login then it shows me an error message at the top of every inner pages. 当我尝试登录时,它会在每个内页顶部显示一条错误消息。

Please check the screenshot: 请检查屏幕截图:

在此处输入图片说明

And here is the 'disks' array from my filesystems.php : 这是我的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. 我试图找出问题所在,但没有任何帮助。

may be you need to add admin to disks array like this 可能您需要像这样将admin添加到磁盘阵列

'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'),
        ],

    ],

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM