ForRo/app/Http/Controllers/FrontIndexController.php

17 lines
292 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers;
use App\Models\Location;
class FrontIndexController extends Controller
{
public function start()
{
$locations = Location::all();
$count = count($locations);
return view('front.index', ['count' => $count]);
}
}