Ad

How To Use Where In Two Condition On Blade Laravel

- 1 answer

How I can add two where condition in laravel blade

({{ \App\Product::all()->where('category_id',$category->id  'user_id',Auth::user()->id)->count() }})
Ad

Answer

you can use where condition in laravel blade as you can use them in your controller

({{ \App\Product::all()->where('category_id',$category->id)->where('user_id',Auth::user()->id)->count() }})
Ad
source: stackoverflow.com
Ad