mercredi 3 mars 2021

laravel, How to save images to public_html directory

I have deployed my page on host. And I have problem, when I posting images.

All images are stored into app/public/images

but I need store them into public_html/images

filesystems.php file:

'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => public_path(),
        ],

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

what changes need to be done here?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire