работает, но как изменить размер изображения в нем
public function store(Request $request)
{
$input = $request->all();
$image = Input::file('image');
if (isset($image)) {
$directory = public_path() . '/uploads/programs';
$medium_size = public_path() . '/uploads/programs/100X100/';
$thumb_nails = public_path() . '/uploads/programs/100X100/';
if (!file_exists($directory)) File::makeDirectory($directory, 0777, true, true);
$filename = sha1(time() . time()) . ".png";
$filename = $image->getClientOriginalName();
$filename = str_random(40) . "$filename";
$upload_success = $image->move($directory, $filename);
$input['image'] = $filename;
}
product::create($input);
return redirect('home');
}