Laravel local filesystem configuration

 

using local filesystem

'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
            'throw' => false,
        ],

 when I store this in the images' directory it will be created in the storage directory

 $file->storeAs('images', $filename);

storage/app/public/images

 

edit config/filesystems.php to map public path images to this storage path


    'links' => [
        public_path('images') => storage_path('app/public/images'),

    ],

 


php artisan storage:link

   INFO  The [public/images] link has been connected to [storage/app/public/images].