forked from projects/thebadspace
66cf78ba75
Added the necessary template files for every page needed. Most are still empty but all are accounted for from the previous version. Also organized all routes to the dashboard, named the den for better security
22 lines
457 B
PHP
22 lines
457 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
use App\Models\Location;
|
|
|
|
class FrontIndexController extends Controller
|
|
{
|
|
public function start()
|
|
{
|
|
$locations = Location::where("active", true)->get();
|
|
$count = count($locations);
|
|
|
|
$terms = "no|agenda";
|
|
|
|
//$result = DB::select("SELECT * FROM searchlocations('$terms')");
|
|
|
|
return view('front.index', ['count' => $count]);
|
|
}
|
|
}
|