Laravel Save File или Directory Picture
$dir_ktp = 'frontend/assets/img/foto_ktp/' . date('Y') . '/' . date('m');
$ext_ktp = $input['foto_ktp']->getClientOriginalExtension();
$ktp = $dir_ktp . '/' . Str::random(20) . '_' . date('d') . '_' . md5(time()) . '.' . $ext_ktp;
$input['foto_ktp']->move(public_path($dir_ktp), $ktp);
Lubis Vermilion