17 lines
292 B
PHP
17 lines
292 B
PHP
|
<?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]);
|
||
|
}
|
||
|
}
|