Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image always with path localhost #56

Open
gaetandezeiraud opened this issue Oct 18, 2021 · 0 comments
Open

Image always with path localhost #56

gaetandezeiraud opened this issue Oct 18, 2021 · 0 comments

Comments

@gaetandezeiraud
Copy link

gaetandezeiraud commented Oct 18, 2021

I use a Cropper in my resource. It is working fine. Except the file path, when editing, who is not good.
It use http://localhost/storage/2021/10/18/c0d39298abcd2f0b65e3d583f475fef53bfc78ea.png and not the good APP_URL defined in the .env file.

I haven't changed anything in the filesystems.php

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

And platform.php

    'attachment' => [
        'disk'      => 'public',
        'generator' => \Orchid\Attachment\Engines\Generator::class,
    ],

Also php artisan cache:clear do not do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant