V
Size: a a a
V
V
В
VY
SG
VY
AS
SV
SV
AS
SV
AS
AS
AS
AS
SV
AS
SV
D
if ($request->hasFile('logo')) {
$image = $request->file('logo');
$hash = sha1_file($image);
$urlChunked = str_split($hash, 2);
$fileName = array_pop($urlChunked) . time() . random_int(0, 99999) . '.' . $image->extension();
$path = '/public/images/';
$path .= implode('/', $urlChunked);
Storage::putFileAs($path, $image, $fileName);
}
D