//Routes
Route::get("form",function(){
return view("form");
});
Route::post("form","HomeController@post");


//Controller
public function post(Request $request){
$data = $request->search;
$search = DB::table("blog")->where("blogId",$data)->get();
return view("form")->with("search",$search);
}

//Form Sayfası

{{csrf_field()}}



@foreach($search as $data)
{{$data->blogName}}
@endforeach