thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

I can't add image in settings menu. #5361

Closed volkankocaali closed 3 years ago

volkankocaali commented 3 years ago

Version information

Description

I can't add image in settings menu. When I check the storage files, the settings folder is created outside of public. how can i solve this problem.

Additional context

storage settgs stadsa

MrCrayon commented 3 years ago

Check your storage configuration

volkankocaali commented 3 years ago

My storage settings are as they should be

'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_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
        ],

    ],
MrCrayon commented 3 years ago

If you are using laravel/laravel 8.5.19 and up you'll need to change disk configuration in config/voyager.php and set it as public. You can read the explanation here: https://github.com/the-control-group/voyager/issues/5362#issuecomment-860007292

Let us know if that solves the problem.

hamitdaylak commented 3 years ago

when will the problem be solved?

emptynick commented 3 years ago

This is fixed. See above

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.