orchidsoftware / crud

Simplify the process of building CRUD (Create, Read, Update, Delete) functionality in Laravel using the features of Orchid.
https://orchid.software
MIT License
137 stars 34 forks source link

Image always with path localhost #56

Open gaetandezeiraud opened 2 years ago

gaetandezeiraud commented 2 years ago

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.