Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

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

Highly Skilled Laravel Developer

Dedicated PHP Developer

0

Resolved

<img src="data:image/png;base64,{{base64_encode($product->logo)}}" >
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Riyas OP riyasopr Joined 27 Dec 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.