TP6 et avant
This commit is contained in:
@@ -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,
|
||||
] );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user