samedi 10 septembre 2022

How Do i get value Of name='blur' From html Form in My Laravel Controller

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Intervention\Image\ImageManagerStatic as Image;
class IamgesController extends Controller
{
    public function uploadimage(Request $request)
    {
        $imagefile=$request->photo;
        if($imagefile!=null){
            $image=$request->file('photo');
            $filename=time().'.'.$request->photo->extension();
            $imageResize=Image::make($image->getRealPath());
            $blurvalue= **Here I want To get Value In int From Form**
            $imageResize->blur($blurvalue);
            $imageResize->save(public_path($filename));
            echo "<img src='".$filename."'>";
        }

    }
}




via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire