mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Implemented internal blocklist sourcing
Switched from using external CSV exports to having the system talk to instances directly to build and update the database. NOTE: Added a new table called Source with the corresponding model to access it
This commit is contained in:
@ -15,7 +15,8 @@ class FrontIndexController extends Controller
|
||||
$locations = Location::where("active", true)->get();
|
||||
$count = count($locations);
|
||||
$recent = Location::where("active", true)
|
||||
->limit(5)->orderByDesc('updated_at')->get();
|
||||
->where('block_count', '>', 2)
|
||||
->limit(10)->orderByDesc('updated_at')->get();
|
||||
|
||||
//$result = DB::select("SELECT * FROM searchlocations('$terms')");
|
||||
|
||||
@ -37,7 +38,8 @@ class FrontIndexController extends Controller
|
||||
$locations = Location::where("active", true)->get();
|
||||
$count = count($locations);
|
||||
$recent = Location::where("active", true)
|
||||
->limit(5)->orderByDesc('updated_at')->get();
|
||||
->where('block_count', '>', 2)
|
||||
->limit(10)->orderByDesc('updated_at')->get();
|
||||
|
||||
return view('front.index', [
|
||||
'count' => $count,
|
||||
|
Reference in New Issue
Block a user