TP6 et avant

This commit is contained in:
2026-10-07 16:34:12 +02:00
parent bb4ee689a1
commit e00d488df7
89 changed files with 11733 additions and 0 deletions
@@ -0,0 +1,42 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function index()
{
$company = 'ACME';
// $clients = 134;
$products = 48;
$orders = 83;
$name = 'Jean';
$city = 'Paris';
$stock = 3;
$clients = [
'Jean Dupont',
'Marie Martin',
'Paul Durand',
'Sophie Bernard'
];
$products = [
'Ordinateur',
'Écran',
'Clavier',
'Souris',
'Webcam'
];
return view('home', [
'company' => $company,
'clients' => $clients,
'products' => $products,
'orders' => $orders,
'name' => $name,
'city' => $city,
'stock' => $stock,
] );
}
}