Again you miss the point because you didn't read the doc carefully.
$query = DB::table('whatever');
if(whatever){
$query->where('whatever', '=', $value);
}
if(whatever){
$query->where('whatever', '=' $value);
}
$results = $query->get();
Try to figure things out by yourself before jumping on the forum, and dont delete your posts when it get solved, it might be useful for other people.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community