if($city!='Others'){
$posts = Post::orderby('id','desc')->where(['city'=>$city])->paginate(10);
}
else{
$posts = Post::orderby('id','desc')->whereNotIn(['city'=>'Lahore'])->paginate(10);
}
}
I have displayed some specific data now I want to display data other than those which were displayed before.
First if is showing normal data and I am trying to display remaining data in else part.