I have merged a collection and now I want to be able to paginate it. I've read this stackoverflow answer on forPage but I don't quite understand how to apply it. Can someone please help clarify? Thanks!
In my Controller:
$lofilter = request('locationfilter');
$mypostings = Postings::where('location', 'LIKE', '%'. $lofilter .'%')->get();
$otherpostings = Postings::where('location', 'NOT LIKE', '%'. $lofilter .'%')->get();
$postings = $mypostings->merge($otherpostings)->paginate(20);