ldc-wenn-dann-mit-respekt/app/Http/Controllers/API/StoreController.php
Vincent BRIDIER 9cd503affd
PHPCBF
2022-11-18 15:35:39 +01:00

27 lines
500 B
PHP

<?php
namespace App\Http\Controllers;
use App\Stores;
class StoreController extends Controller
{
// Stores
public function index()
{
return Stores::all();
}
public function show($id)
{
return Stores::find($id);
}
// Stores by city
public function city($city)
{
// return Stores::where('city', $city)->first();
// return Stores::where('city', $city)::all;
// return Stores::where('city', '=', $city)->get();
}
}