ldc-nature-and-respect/app/Http/Controllers/API/StoreController.php

27 lines
516 B
PHP
Raw Normal View History

2022-11-18 12:39:03 +01:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
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();
}
}