/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $cmd = new Commande(); $commandes = $cmd->getAllByClient($id); $cli = new Client(); $client = $cli->getById($id); return view('client.show')->with('commandes', $commandes)->with('client', $client); }