LP53-Services-BD-CMS/app/Http/Controllers/ClientsController.php

70 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2023-03-03 17:22:05 +01:00
<?php
namespace App\Http\Controllers;
use App\Models\Clients;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class ClientsController extends Controller
{
2023-03-10 17:43:26 +01:00
public function index(Request $request, Bool $paginate = true) {
return parent::index($request, $paginate);
2023-03-03 17:22:05 +01:00
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
2023-03-03 17:45:53 +01:00
//return Clients::where('id', $id)->get();
$r = Clients::find($id);
foreach ($r->LignesCommandes as $c) {
foreach ($c->LignesCommandes as $lc) {
$lc->Produits;
}
}
return $r;
2023-03-03 17:22:05 +01:00
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
}