1
0
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:
Ro
2023-09-01 15:22:57 -07:00
parent 973b02af61
commit 565f099c90
5 changed files with 162 additions and 30 deletions

View File

@ -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,