AS
Size: a a a
AS
R#
D
D
R#
MM
AS
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);
}
AS
AS
AS
SC
S
АС
S
S
S
АС
АС