You can try this code
public function search(Request $request) { $search_value=Input::get('search');
$blogs = Blog::where('status','Active') -> where('title', 'LIKE', '%' . $search_value . '%') -> orWhere('description', 'LIKE', '%' . $search_value . '%') -> orderby('id','desc') -> with('category') -> get();
$category = Blog_category::where('status', 'Active') ->orderby('name') ->get();
$blog_slider = BlogSlider::where('status','Active') ->orderBy('sort') ->get();
return view('page.blog',compact('blogs','category','blog_slider')); }
You can get record using this code. and in this get record you can get image also. By:Xtreem Solution
Resolved
<img src="data:image/png;base64,{{base64_encode($product->logo)}}" >Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community