/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $commande = new Commande();
     $commandes = $commande->getAll();
     return view('commande.index')->with('commandes', $commandes);
 }
 public function getAll()
 {
     $cmd = new Commande();
     $results = $cmd->getAll();
     return Response()->json($results, 200);
 }