2023-08-14 22:33:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2023-08-15 23:05:51 +02:00
|
|
|
use Illuminate\Support\Facades\DB;
|
2023-08-14 22:33:53 +02:00
|
|
|
use App\Models\Location;
|
|
|
|
|
|
|
|
class FrontIndexController extends Controller
|
|
|
|
{
|
|
|
|
public function start()
|
|
|
|
{
|
|
|
|
$locations = Location::all();
|
|
|
|
$count = count($locations);
|
|
|
|
|
2023-08-15 23:05:51 +02:00
|
|
|
$terms = "no|agenda";
|
|
|
|
|
|
|
|
//$result = DB::select("SELECT * FROM searchlocations('$terms')");
|
|
|
|
|
2023-08-14 22:33:53 +02:00
|
|
|
return view('front.index', ['count' => $count]);
|
|
|
|
}
|
|
|
|
}
|