Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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 A Numeric Value From HTML FORM**           
        $imageResize->blur($blurvalue);
        $imageResize->save(public_path($filename));
        echo "<img src='".$filename."'>";
    }

}
}

I Am A NewBie In Laravel,
I want To Get value from HTML Form IN my Controller, I tried Many Solution But None of any is working.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

HTTP Requests in Laravel Document

HTML Form:

<input name="blur">

Laravel Controller :

public function uploadimage(Request $request)
{
    //get blur input value
    $blurValue = $request->blur;
...

return $request->all(); return all inputs values

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading