laravel storage get file path
snippet in php

laravel storage get file path

user6012

use Illuminate\Support\Facades\Storage;

$path = Storage::path('file.jpg');

laravel get path to storage folder

user3433

$path = storage_path('app/file.txt');

laravel store file

user5106

$path = $request->file('avatar')->store(
    'avatars', 'public'
);