public function getById($idCmd) { $cmd = new Commande(); $result = $cmd->getById($idCmd); return Response()->json($result->toArray(), 200); }